diff options
author | Martin Baulig <martin@novell.com> | 2004-06-23 04:16:45 +0400 |
---|---|---|
committer | Martin Baulig <martin@novell.com> | 2004-06-23 04:16:45 +0400 |
commit | a0b25ef2803fbc2d66333d68a68d2a5b25d89566 (patch) | |
tree | 98896681ecacceaecec1215b0357c7bfe003b781 /mcs/errors/cs0161-2.cs | |
parent | ff5f9c382dbc10169da081c07572601f4105549d (diff) |
New test for #60457.
svn path=/trunk/mcs/; revision=30149
Diffstat (limited to 'mcs/errors/cs0161-2.cs')
-rw-r--r-- | mcs/errors/cs0161-2.cs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mcs/errors/cs0161-2.cs b/mcs/errors/cs0161-2.cs new file mode 100644 index 00000000000..3cf57dd4369 --- /dev/null +++ b/mcs/errors/cs0161-2.cs @@ -0,0 +1,14 @@ +// CS0161: Not all code paths return a value +// Line: 4 +class Test { + static int Main () { + bool b = false; + while (true) { + if (b) + break; + else + break; + } + } +} + |