2008-08-31 Zoltan Varga <vargaz@gmail.com>
[mcs.git] / tests / test-335.cs
blob2b128cc13e3fcbd87ca56ec932a1cd2abf36f2f0
1 class X {
2 delegate void B (int a, int b);
3 static void A (int a, int b) {}
5 delegate void D (out int a);
6 static void C (out int a) { a = 5; }
8 static void Main()
10 (new B (A)) (1, 2);
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);