Add support for Windows x64 Full AOT + LLVM + Interpreter on CI. (#15276)
[mono-project.git] / mcs / tests / test-primary-ctor-04.cs
blobe2015a92479342c0d71866d5cf2d33754bd15fa3
1 // Compiler options: -langversion:experimental
2 class Derived (int arg, ref byte b, out int o) : Base (out o)
4 public long field = arg;
5 public int fieldRef = b;
8 class Base
10 internal Base (out int o)
12 o = 8;
16 class X
18 public static int Main ()
20 int arg;
21 byte b = 4;
22 var d = new Derived (-5, ref b, out arg);
23 if (d.field != -5)
24 return 1;
26 if (d.fieldRef != 4)
27 return 2;
29 System.Console.WriteLine ("ok");
30 return 0;