diff options
Diffstat (limited to 'mcs/tests/test-35.cs')
-rwxr-xr-x | mcs/tests/test-35.cs | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/mcs/tests/test-35.cs b/mcs/tests/test-35.cs deleted file mode 100755 index d9bc1d8338e..00000000000 --- a/mcs/tests/test-35.cs +++ /dev/null @@ -1,71 +0,0 @@ -// -// This test checks the !x optimization for if/while/for/do -// -class X { - - static bool t = true; - static bool f = false; - static int j = 0; - - static void a () - { - if (!t) - j = 1; - } - - static void w (int x) - { - System.Console.WriteLine (" " + x); - } - - static int Main () - { - int ok = 0, error = 0; - - if (!f) - ok = 1; - else - error++; - - w (1); - if (f) - error++; - else - ok |= 2; - - w(2); - if (t) - ok |= 4; - else - error++; - - if (!t) - error++; - else - ok |= 8; - - if (!(t && f == false)) - error++; - else - ok |= 16; - - int i = 0; - w(3); - do { - i++; - } while (!(i > 5)); - if (i != 6) - error ++; - else - ok |= 32; - - w(100); - System.Console.WriteLine ("Value: " + t); - do { - i++; - } while (!t); - - System.Console.WriteLine ("Ok=" + ok + " Errors=" + error); - return ((ok == 63) && (error == 0)) ? 0 : 1; - } -} |