[interp] Reduce computation under calc_section mutex
[mono-project.git] / mcs / tests / test-841.cs
blob2cfdc0f00cb341c26995ff2f29877ddc68461ad4
1 struct S
3 public R a, b;
6 struct R
8 public double v;
10 public static implicit operator R (int v)
12 return new R ();
15 public static implicit operator double (R r)
17 return r.v;
21 class C
23 public static int Main ()
25 S r1, r2;
26 r1.a = 1;
27 r1.b = 2;
29 r2.a = 1;
30 r2.b = 2;
32 bool b = r1.a == r2.a && r1.b == r2.b;
33 if (!b)
34 return 1;
35 return 0;