diff options
author | Martin Baulig <martin@novell.com> | 2005-05-02 18:02:53 +0400 |
---|---|---|
committer | Martin Baulig <martin@novell.com> | 2005-05-02 18:02:53 +0400 |
commit | fa04b80eaaa682013fd17c29791a50e36161659b (patch) | |
tree | 8e09a417c38a4ed751fd4e75233b8a1fd643d2d6 /mcs/tests/test-154.cs | |
parent | 33ead567e5a974225dcbe3ac9f1dcc06597bba06 (diff) |
Added a testcase for #74529 where we must not report an error.
svn path=/trunk/mcs/; revision=43884
Diffstat (limited to 'mcs/tests/test-154.cs')
-rw-r--r-- | mcs/tests/test-154.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mcs/tests/test-154.cs b/mcs/tests/test-154.cs index 6a336975db0..dd20899da77 100644 --- a/mcs/tests/test-154.cs +++ b/mcs/tests/test-154.cs @@ -605,4 +605,17 @@ public class X break; } } + + static int test40 (int stop) + { + int service; + + int pos = 0; + do { + service = 1; + break; + } while (pos < stop); + + return service; + } } |