[interp] Reduce computation under calc_section mutex
[mono-project.git] / mcs / tests / test-475.cs
blobae9394722d546676a0728f45346568f7a05d06b1
1 using System;
3 public delegate void MyDelegate (int a);
5 public class X
7 static event MyDelegate e = X.Test;
8 static int cc = 4;
10 static void Test (int foo)
12 X.cc = foo;
13 Console.WriteLine ("OK");
16 public static int Main ()
18 e (10);
19 if (cc != 10)
20 return 1;
22 return 0;