Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@gnome.org>2002-10-23 03:59:33 +0400
committerMiguel de Icaza <miguel@gnome.org>2002-10-23 03:59:33 +0400
commit41fd8089b6127a4ad7d6dccb2748a78f7d860240 (patch)
tree8dcf90219ae3ec17e4d6339fb9d62b3f5253d1b6 /mcs/tests/test-49.cs
parent7e514160809ad0c5e18569441641087feffc9f05 (diff)
Add new test
svn path=/trunk/mcs/; revision=8483
Diffstat (limited to 'mcs/tests/test-49.cs')
-rwxr-xr-xmcs/tests/test-49.cs28
1 files changed, 27 insertions, 1 deletions
diff --git a/mcs/tests/test-49.cs b/mcs/tests/test-49.cs
index 1e239241fa2..e96b2c9fa5a 100755
--- a/mcs/tests/test-49.cs
+++ b/mcs/tests/test-49.cs
@@ -418,6 +418,21 @@ class X {
return 4;
}
}
+
+ static int test_string_multiple_targets (string s)
+ {
+ switch (s){
+ case "A":
+ return 1;
+ case "B":
+ return 2;
+ case "C":
+ case "D":
+ return 3;
+ }
+ return 0;
+ }
+
static int Main ()
{
byte b;
@@ -509,7 +524,18 @@ class X {
if (test_memberaccess ("one") != 3)
return 35;
-
+
+ if (test_string_multiple_targets ("A") != 1)
+ return 36;
+ if (test_string_multiple_targets ("B") != 2)
+ return 37;
+ if (test_string_multiple_targets ("C") != 3)
+ return 38;
+ if (test_string_multiple_targets ("D") != 3)
+ return 39;
+ if (test_string_multiple_targets ("E") != 0)
+ return 40;
+
Console.WriteLine ("All tests pass");
return 0;
}