svn path=/trunk/mcs/; revision=1517
@@ -0,0 +1,8 @@
+// cs0153.cs: goto default only allowed in switch statement
+// Line:
+class X {
+ void Main ()
+ {
+ goto default;
+ }
+}
@@ -0,0 +1,23 @@
+// cs0159.cs: No default target for goto default
+
+ static int m (int n)
+ switch (n){
+ case 0:
+ case 1:
+ return 1;
+ return 10;
+ static void Main ()
+ m (1);