diff options
author | Martin Baulig <martin@novell.com> | 2003-02-23 21:39:31 +0300 |
---|---|---|
committer | Martin Baulig <martin@novell.com> | 2003-02-23 21:39:31 +0300 |
commit | c015d3a3d7072df87d8fe664d11d80ead8216c37 (patch) | |
tree | 0acba840804152cec47e552764a616d9da4deb7d /mcs/tests/test-185.cs | |
parent | a32e55fb66936ccada8ff914727214491b23e7f5 (diff) |
2003-02-23 Martin Baulig <martin@ximian.com>
* test-185.cs: New test for bug #37708.
svn path=/trunk/mcs/; revision=11875
Diffstat (limited to 'mcs/tests/test-185.cs')
-rw-r--r-- | mcs/tests/test-185.cs | 27 |
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; + } +} |