[interp] Reduce computation under calc_section mutex
[mono-project.git] / mcs / tests / dtest-028.cs
blob94c33799bde4a0103b2ab7a0eb1fa95db602a442
1 class C
3 public void MethodRef (ref int a)
5 a += 10;
8 public void MethodOut (out ushort a)
10 a = 40;
14 public class Test
16 static void M (ref dynamic[] d, ref object[] o)
20 public static int Main ()
22 dynamic d = new C ();
23 int i = 1;
25 d.MethodRef (ref i);
26 if (i != 11)
27 return 1;
29 ushort u = 9;
30 d.MethodOut (out u);
31 if (u != 40)
32 return 2;
34 object[] o = null;
35 M (ref o, ref o);
37 return 0;