Merge pull request #495 from nicolas-raoul/fix-for-issue2907-with-no-formatting-changes
[mono.git] / mcs / tests / test-335.cs
1 class X {
2         delegate void B (int a, int b);
3         static void A (int a, int b) {}
4
5         delegate void D (out int a);
6         static void C (out int a) { a = 5; }
7         
8         public static void Main()
9         {
10                 (new B (A)) (1, 2);
11
12                 int x = 0;
13                 (new D (C)) (out x);
14                 if (x != 5)
15                         throw new System.Exception ("The value of x is " + x);
16         }
17 }