[interp] Reduce computation under calc_section mutex
[mono-project.git] / mcs / tests / test-24.cs
blob622f5dcbf9686bb000aaae7bfdf96ca6abeaccc4
1 //
2 // Properties intermixed in assignments
3 //
5 using System;
7 class X {
9 static string v;
11 static string S {
12 get {
13 return v;
15 set {
16 v = value;
20 static string x, b;
22 public static int Main ()
25 x = S = b = "hlo";
26 if (x != "hlo")
27 return 1;
28 if (S != "hlo")
29 return 2;
30 if (b != "hlo")
31 return 3;
32 return 0;