[Wasm] Fix memory override in mono_wasm_add_assembly
[mono-project.git] / mcs / tests / test-152.cs
blob357c7699bc1015350a05be1bcf9ace1f0b848c3e
1 using System;
3 public class X
5 public static int Main ()
7 int v = 10;
8 int a;
10 switch (v) {
11 case 0:
12 int i = v + 1;
13 a = i;
14 break;
15 default:
16 i = 5;
17 a = i;
18 break;
20 if (a != 5)
21 return 1;
24 v = 20;
25 int r = 0;
27 switch (v){
28 case 20:
29 r++;
30 int j = 10;
31 r += j;
32 break;
34 if (r != 11)
35 return 5;
37 return 0;