Merge all static runtime libs into libmono-static.
[mono.git] / mcs / tests / gtest-621.cs
1 using System;
2
3 class X
4 {
5         static int Main ()
6         {
7                 int? intArg = 1;
8                 long? longArg = 2;
9
10                 var g = intArg ?? longArg;
11                 Console.WriteLine (g);
12                 if (g != 1)
13                         return 1;
14
15                 intArg = null;
16                 g = intArg ?? longArg;
17                 Console.WriteLine (g);
18                 if (g != 2)
19                         return 2;
20
21                 longArg = null;
22                 g = intArg ?? longArg;
23                 Console.WriteLine (g);
24                 if (g != null)
25                         return 3;
26                         
27                 return 0;
28         }
29
30         const Action cf = null;
31         void Foo (Action f)
32         {
33                 var x = f ?? cf;
34         }
35 }