[corlib] Fix a few NSLogWriter issues. (#13799)
[mono-project.git] / mcs / tests / test-335.cs
blob03f5225a31999acadf5253b6e1d7e2e41e4180e4
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 public 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);