OpenBSD has sem_timedwait().
[mono.git] / mcs / tests / gtest-329.cs
index 398ad9133c2ae726184b9bcf722dfb619c424a10..c5f2dd812406aa0c9586a06da61d8c528429b1b5 100644 (file)
@@ -2,7 +2,7 @@ using System;
 
 public class NullableInt
 {
-         public static void Main()
+         public static int Main()
          {
                  object x = null;
 
@@ -10,5 +10,11 @@ public class NullableInt
 
                  Console.WriteLine("y: '{0}'", y);
                  Console.WriteLine("y.HasValue: '{0}'", y.HasValue);
+                        
+                        int? b = 1 as int?;
+                        if (b != 1)
+                                return 1;
+                        
+                        return 0;
          }
 }