summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0429-4.cs
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/errors/cs0429-4.cs')
-rw-r--r--mcs/errors/cs0429-4.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/mcs/errors/cs0429-4.cs b/mcs/errors/cs0429-4.cs
new file mode 100644
index 0000000000..d808039967
--- /dev/null
+++ b/mcs/errors/cs0429-4.cs
@@ -0,0 +1,14 @@
+// CS0429: Unreachable expression code detected
+// Line: 12
+// Compiler options: -warnaserror
+
+public class X
+{
+ static void test (int stop)
+ {
+ int pos = 0;
+ do {
+ break;
+ } while (pos < stop);
+ }
+}