[Wasm] Fix memory override in mono_wasm_add_assembly
[mono-project.git] / mcs / tests / test-879.cs
blob4d6aa3396bb33a5ede2bc40106385164a33ea680
1 struct AStruct
3 public object foo;
5 public AStruct (int i)
6 : this ()
11 public class Tests
13 public static int Main ()
15 for (int i = 0; i < 100; ++i) {
16 AStruct a;
18 a = new AStruct (5);
19 if (a.foo != null)
20 return 1;
22 a.foo = i + 1;
25 System.Console.WriteLine ("ok");
26 return 0;