Added Symbolicate tool.
[mono.git] / mcs / tests / test-primary-ctor-04.cs
1 class Derived (int arg, ref byte b, out int o) : Base (out o)
2 {
3         public long field = arg;
4         public int fieldRef = b;
5 }
6
7 class Base
8 {
9         internal Base (out int o)
10         {
11                 o = 8;
12         }
13 }
14
15 class X
16 {
17         public static int Main ()
18         {
19                 int arg;
20                 byte b = 4;
21                 var d = new Derived (-5, ref b, out arg);
22                 if (d.field != -5)
23                         return 1;
24
25                 if (d.fieldRef != 4)
26                         return 2;
27
28                 System.Console.WriteLine ("ok");
29                 return 0;
30         }
31 }