Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/tests/test-35.cs')
-rwxr-xr-xmcs/tests/test-35.cs71
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;
- }
-}