[interp] Reduce computation under calc_section mutex
[mono-project.git] / mcs / tests / test-anon-91.cs
blob0ed3b0b6424092ab78f288e1955e8b90345eb513
1 using System;
3 class A
5 public A (int v)
7 Values = new int [] { v, 1 };
10 public int[] Values;
13 class C
15 public delegate void D ();
17 public static int Main ()
19 new C ().Test ();
20 return 0;
23 void SelectCommand (int v)
27 void Test ()
29 A[] conflicts = new A []{ new A (1), new A (2), new A (3) };
30 D d = delegate {
31 foreach (A conf in conflicts) {
32 foreach (int cmd in conf.Values) {
33 int localCmd = cmd;
34 D d2 = delegate {
35 SelectCommand (localCmd);