Author: martin
Date: 2005-05-04 06:21:29 -0400 (Wed, 04 May 2005)
New Revision: 44014
Modified:
trunk/mcs/tests/ChangeLog
trunk/mcs/tests/test-49.cs
Log:
2005-05-04 Martin Baulig <[EMAIL PROTECTED]>
* test-49.cs: Add testcase from 74655.
Modified: trunk/mcs/tests/ChangeLog
===================================================================
--- trunk/mcs/tests/ChangeLog 2005-05-04 10:14:12 UTC (rev 44013)
+++ trunk/mcs/tests/ChangeLog 2005-05-04 10:21:29 UTC (rev 44014)
@@ -1,3 +1,7 @@
+2005-05-04 Martin Baulig <[EMAIL PROTECTED]>
+
+ * test-49.cs: Add testcase from 74655.
+
2005-05-03 Raja R Harinath <[EMAIL PROTECTED]>
* test-372.cs: New test from #74773.
Modified: trunk/mcs/tests/test-49.cs
===================================================================
--- trunk/mcs/tests/test-49.cs 2005-05-04 10:14:12 UTC (rev 44013)
+++ trunk/mcs/tests/test-49.cs 2005-05-04 10:21:29 UTC (rev 44014)
@@ -497,6 +497,22 @@
return 2;
}
}
+
+ // 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;
+ }
static int Main ()
{
@@ -615,6 +631,15 @@
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;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches