* test-49.cs: Add testcase from 74655.
svn path=/trunk/mcs/; revision=44014
+2005-05-04 Martin Baulig <martin@ximian.com>
+
+ * test-49.cs: Add testcase from 74655.
+
2005-05-03 Raja R Harinath <rharinath@novell.com>
* test-372.cs: New test from #74773.
2005-05-03 Raja R Harinath <rharinath@novell.com>
* test-372.cs: New test from #74773.
+
+ // Bug #74655
+ static int tests_default_2 (string foo)
+ {
+ switch (foo) {
+ case "Hello":
+ break;
+ default:
+ return 1;
+ case "foo":
+ return 2;
+ case "Monkey":
+ break;
+ }
+ return 3;
+ }
return 45;
if (tests_default ("how") != 2)
return 46;
return 45;
if (tests_default ("how") != 2)
return 46;
+
+ if (tests_default_2 ("Test") != 1)
+ return 47;
+ if (tests_default_2 ("foo") != 2)
+ return 48;
+ if (tests_default_2 ("Hello") != 3)
+ return 49;
+ if (tests_default_2 ("Monkey") != 3)
+ return 50;
Console.WriteLine ("All tests pass");
return 0;
Console.WriteLine ("All tests pass");
return 0;