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:
authorMartin Baulig <martin@novell.com>2004-06-23 04:16:45 +0400
committerMartin Baulig <martin@novell.com>2004-06-23 04:16:45 +0400
commita0b25ef2803fbc2d66333d68a68d2a5b25d89566 (patch)
tree98896681ecacceaecec1215b0357c7bfe003b781 /mcs/errors/cs0161-2.cs
parentff5f9c382dbc10169da081c07572601f4105549d (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.cs14
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;
+ }
+ }
+}
+