[interp] Reduce computation under calc_section mutex
[mono-project.git] / mcs / tests / test-debug-27.cs
blob982b42c9c5fbdea9f31bc19edcf5809d1b23fe62
1 using System;
3 // Tests for explicit call sequence point
5 struct S
7 public S (int i)
12 public static implicit operator int (S s)
14 return 1;
18 class C
20 public static int A ()
22 return 1;
25 public static int B (C c)
27 return 2;
30 public static C Test ()
32 return new C ();
35 public string Foo ()
37 return null;
40 void Test_1 ()
42 Func<int> f = A;
44 var res = f () + f ();
47 void Test_2 ()
49 var s = new S (0);
52 void Test_3 ()
54 int i = new S () + new S ();
57 void Test_4 ()
59 Test ().Foo ();
62 static int Main ()
64 return 0;