Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / test-475.cs
1 using System;
2
3 public delegate void MyDelegate (int a);
4
5 public class X
6 {
7         static event MyDelegate e = X.Test;
8         static int cc = 4;
9         
10         static void Test (int foo)
11         {
12                 X.cc = foo;
13                 Console.WriteLine ("OK");
14         }
15         
16         public static int Main ()
17         {
18                 e (10);
19                 if (cc != 10)
20                         return 1;
21                 
22                 return 0;
23         }
24 }