Hopefully the --enable-loadedllvm build on linux.
[mono.git] / mono / mini / basic-long.cs
index 5373a5ed92dd3f602f53b305fb96a9fa1d595e94..11fa4e1b63c5689398c243139bac281091b077aa 100644 (file)
@@ -23,11 +23,18 @@ using System.Reflection;
  * the IL code looks.
  */
 
-class Tests {
+#if MOBILE
+class LongTests
+#else
+class Tests
+#endif
+{
 
-       public static int Main () {
-               return TestDriver.RunTests (typeof (Tests));
+#if !MOBILE
+       public static int Main (string[] args) {
+               return TestDriver.RunTests (typeof (Tests), args);
        }
+#endif
 
        public static int test_10_simple_cast () {
                long a = 10;
@@ -1190,5 +1197,11 @@ class Tests {
                    return (value == 65526) ? 0 : 1;
                }
        }
+
+       public static int test_0_lneg_regress_10320 () {
+               long a = 0x100000000;
+               ulong c = ((ulong) (-(-a))) >> 32;
+               return c == 1 ? 0 : 1;
+       }
 }