Convert literals to constants when reducing literal value
[mono.git] / mcs / tests / test-129.cs
index 11cf4b70e2c20654cba3f5511e36de535c997986..92fd6914b4518969ea02a0da30d313bafaebd5a5 100644 (file)
@@ -11,7 +11,20 @@ class X {
                int b = -2147483648;
                long c = -9223372036854775808;
                sbyte d = -128;
+               
+               object o = -(2147483648);
+               if (o.GetType () != typeof (long))
+                       return 1;
 
+               o = -(uint)2147483648;
+               Console.WriteLine (o.GetType ());
+               if (o.GetType () != typeof (long))
+                       return 2;
+
+               uint ui = (1);
+               byte b1 = (int)(0x30);
+               byte b2 = (int)0x30;
+               
                return 0;
        }
 }