Fix LLVM linker flags for 6.0.
[mono-project.git] / mcs / tests / gtest-329.cs
blobc5f2dd812406aa0c9586a06da61d8c528429b1b5
1 using System;
3 public class NullableInt
5 public static int Main()
7 object x = null;
9 int? y = x as int?; /* Causes CS0077 */
11 Console.WriteLine("y: '{0}'", y);
12 Console.WriteLine("y.HasValue: '{0}'", y.HasValue);
14 int? b = 1 as int?;
15 if (b != 1)
16 return 1;
18 return 0;