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:
authorMiguel de Icaza <miguel@gnome.org>2001-12-04 03:55:13 +0300
committerMiguel de Icaza <miguel@gnome.org>2001-12-04 03:55:13 +0300
commitfda35b19ad3045735b03d07c8b8a63cfd7d16ac4 (patch)
treecbd1089d4301044c31da4118cd05db99841e0b40 /mcs/errors/cs0159.cs
parent9b240f5e20ba55cecf41848bbabd59f8329443c3 (diff)
New error test files
svn path=/trunk/mcs/; revision=1517
Diffstat (limited to 'mcs/errors/cs0159.cs')
-rwxr-xr-xmcs/errors/cs0159.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/mcs/errors/cs0159.cs b/mcs/errors/cs0159.cs
new file mode 100755
index 00000000000..65aa5cb2dfb
--- /dev/null
+++ b/mcs/errors/cs0159.cs
@@ -0,0 +1,23 @@
+// cs0159.cs: No default target for goto default
+// Line:
+
+class X {
+
+ static int m (int n)
+ {
+ switch (n){
+ case 0:
+ goto default;
+
+ case 1:
+ return 1;
+ }
+
+ return 10;
+ }
+
+ static void Main ()
+ {
+ m (1);
+ }
+}