[LoongArch64] Part-5:add loongarch support in some files for LoongArch64. (#21769)
[mono-project.git] / mcs / tests / gtest-621.cs
blob6444cb7918ed1d9497388cba8fe6c9bf5ad10a5b
1 using System;
3 class X
5 static int Main ()
7 int? intArg = 1;
8 long? longArg = 2;
10 var g = intArg ?? longArg;
11 Console.WriteLine (g);
12 if (g != 1)
13 return 1;
15 intArg = null;
16 g = intArg ?? longArg;
17 Console.WriteLine (g);
18 if (g != 2)
19 return 2;
21 longArg = null;
22 g = intArg ?? longArg;
23 Console.WriteLine (g);
24 if (g != null)
25 return 3;
27 return 0;
30 const Action cf = null;
31 void Foo (Action f)
33 var x = f ?? cf;