Fix LLVM linker flags for 6.0.
[mono-project.git] / mcs / tests / test-79.cs
blobaf3f0266074b0094ee1198898f3278cb1b203fdd
1 //
2 // This test excercises the compiler being able to compute
3 // correctly the return type in the presence of null (as null
4 // will be implicitly convertible to anything
5 //
6 class X {
8 public static int Main ()
10 object o = null;
12 string s = o == null ? "string" : null;
13 string d = o == null ? null : "string";
15 return 0;