Switch to compiler-tester
[mono.git] / mcs / errors / cs0159.cs
1 // cs0159.cs: No such label `default:' within the scope of the goto statement
2 // Line:
3
4 class X {
5
6         static int m (int n)
7         {
8                 switch (n){
9                 case 0:
10                         goto default;
11
12                 case 1:
13                         return 1;
14                 }
15
16                 return 10;
17         }
18         
19         static void Main ()
20         {
21                 m (1);
22         }
23 }