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-185.cs')
-rw-r--r--mcs/tests/test-185.cs27
1 files changed, 27 insertions, 0 deletions
diff --git a/mcs/tests/test-185.cs b/mcs/tests/test-185.cs
new file mode 100644
index 00000000000..6f06b22be69
--- /dev/null
+++ b/mcs/tests/test-185.cs
@@ -0,0 +1,27 @@
+using System;
+
+class X
+{
+ public static int Test (int x)
+ {
+ for (;;) {
+ if (x != 1)
+ x--;
+ else
+ break;
+ return 5;
+ }
+ return 0;
+ }
+
+ static int Main ()
+ {
+ if (Test (1) != 0)
+ return 1;
+
+ if (Test (2) != 5)
+ return 2;
+
+ return 0;
+ }
+}