[Wasm] Fix memory override in mono_wasm_add_assembly
[mono-project.git] / mcs / tests / gtest-autoproperty-09.cs
blob42c12e9add6072614d1298455fb7639a671df2ac
1 // Compiler options: -langversion:experimental
2 using System;
4 struct S
6 public static int P { get; } = 4;
8 public static int[] PA { get; } = { 0, 2 };
10 public static int Main ()
12 if (P != 4)
13 return 1;
15 if (PA [1] != 2)
16 return 10;
18 var c = new C ();
19 if (c.P != -3)
20 return 2;
22 if (c.P2 != 1)
23 return 3;
25 c.P2 = 9;
26 if (c.P2 != 9)
27 return 4;
29 var s = new S2 (null);
30 if (s.P != 4)
31 return 12;
33 if (s.P2 != 1)
34 return 13;
36 s.P2 = 9;
37 if (s.P2 != 9)
38 return 14;
40 return 0;
44 class C
46 public decimal P { get; } = -3;
47 public int P2 { get; set; } = 1;
50 struct S2
52 public int P { get; } = 4;
53 public int P2 { get; set; } = 1;
55 public S2 (object o)