Bump mono-extensions to fix build break (#5677)
[mono.git] / mcs / tests / test-485.cs
index 909fc5f8f6e9657e4b2430a0d96f8dca90995d3a..7892fb6b540bff0304bc35d2e8e98854d792a541 100644 (file)
@@ -1,16 +1,19 @@
-// Compiler options: /checked+
+// Compiler options: -checked
 
 using System;
 
-
 public class MonoBUG
 {
-       public static void Main (string[] args)
+       public static int Main ()
        {
-               double B = 4.0;
-               double K = 2.0;
-               double A = - B / (K * K);
-
-               Console.WriteLine ("{0}", A);
+               long l = long.MaxValue;
+               
+               try {
+                       l *= 2;
+                       return 1;
+               } catch (OverflowException) {
+               }
+               
+               return 0;
        }
 }