Merge pull request #5560 from kumpera/wasm-work-p3
[mono.git] / mcs / tests / test-510.cs
1 class Foo {
2         static void test39 (ref int a)
3         {
4                 int x_0 = 0;
5                 int ll_1 = 0;
6         
7                 switch (0) {
8                 default:
9                         switch (x_0) {
10                         default:
11                                 if (ll_1 == 0)
12                                         break;
13                                 else
14                                         goto k_1;
15                         }
16                         a = 5;
17                         break;
18                 k_1:
19                         break;
20                 }
21         }
22
23         public static void Main ()
24         {
25                 int a = 0;
26                 test39 (ref a);
27                 if (a != 5)
28                         throw new System.Exception ("reachable code got marked as unreachable");
29         }
30 }