Merge pull request #409 from Alkarex/patch-1
[mono.git] / mcs / tests / test-854.cs
1 using System;
2
3 public class Test {
4
5         public static int Main ()
6         {
7                 int a = 2;
8                 int res = 0;
9                 switch(a) {
10                 case 1:
11                         res += 1;
12                 label:
13                         res += 3;
14                         break;
15                 case 2:
16                         res += 2;
17                         goto label;
18                 }
19
20                 if (res != 5)
21                         return 1;
22
23                 return 0;
24         }
25 }