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:
authorMartin Baulig <martin@novell.com>2003-12-11 15:03:08 +0300
committerMartin Baulig <martin@novell.com>2003-12-11 15:03:08 +0300
commit23ee9a87f9ba54578aeb1484b8850ca047aecfe6 (patch)
tree48c8ec641e5ec9c34daa0325466c2177a6d4c63d /mcs/tests/test-154.cs
parente599e40d5f570c41e690051486a5eef86725fff3 (diff)
2003-12-11 Martin Baulig <martin@ximian.com>
* test-154.cs: Added testcases for bugs #49153, #49359 and #49602. svn path=/trunk/mcs/; revision=21022
Diffstat (limited to 'mcs/tests/test-154.cs')
-rw-r--r--mcs/tests/test-154.cs38
1 files changed, 38 insertions, 0 deletions
diff --git a/mcs/tests/test-154.cs b/mcs/tests/test-154.cs
index db7705f8301..3ed47d9377d 100644
--- a/mcs/tests/test-154.cs
+++ b/mcs/tests/test-154.cs
@@ -462,4 +462,42 @@ public class X
outparam = null;
return null;
}
+
+ //
+ // Bug #49153
+ //
+ public string test31 (int blah)
+ {
+ switch(blah) {
+ case 1: return("foo"); break;
+ case 2: return("bar"); break;
+ case 3: return("baz"); break;
+
+ default:
+ throw new ArgumentException ("Value 0x"+blah.ToString ("x4")+" is not supported.");
+ }
+ }
+
+ //
+ // Bug #49359
+ //
+ public void test32 ()
+ {
+ while (true) {
+ System.Threading.Thread.Sleep (1);
+ }
+
+ Console.WriteLine ("Hello");
+ }
+
+ //
+ // Bug 49602
+ //
+ public int test33 ()
+ {
+ int i = 0;
+ return 0;
+ if (i == 0)
+ return 0;
+ }
}