* the IL code looks.
*/
-class Tests {
-
- static int Main () {
- return TestDriver.RunTests (typeof (Tests));
- }
+#if MOBILE
+class BasicTests
+#else
+class Tests
+#endif
+{
+
+#if !MOBILE
+ public static int Main (string[] args) {
+ return TestDriver.RunTests (typeof (Tests), args);
+ }
+#endif
public static int test_0_return () {
return 0;
// Avoid cfolding this
i = 0;
- for (int j = 0; j < 1234567; ++j)
+ for (int j = 0; j < 567; ++j)
i ++;
+ i += 1234000;
if ((i / 2) != 617283)
return 1;
if ((i / 4) != 308641)
// Avoid cfolding this
i = 0;
- for (int j = 0; j < 1234567; ++j)
+ for (int j = 0; j < 567; ++j)
i --;
+ i -= 1234000;
if ((i / 2) != -617283)
return 5;
if ((i / 4) != -308641)
return 0;
}
+ public static unsafe int test_0_ishr_sign_extend_cfold () {
+ int i = 32768;
+ int j = i << 16;
+ int k = j >> 16;
+
+ return k == -32768 ? 0 : 1;
+ }
}