changeset 185:6067056cad0c

fixed goto_4 location
author thomask
date Thu, 09 Dec 2004 06:25:02 +0000
parents 2f17af7c6359
children c18d6e8a712e
files nocompile/goto_04.d nocompile/goto_06.d run/goto_04.d
diffstat 3 files changed, 44 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/goto_04.d	Thu Dec 09 06:25:02 2004 +0000
@@ -0,0 +1,15 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+module dstress.nocompile.goto_04;
+
+int main(){
+	int i=1;
+	switch(i){
+		case 1:
+			goto case 2;
+		default:
+			assert(0);
+	}
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/goto_06.d	Thu Dec 09 06:25:02 2004 +0000
@@ -0,0 +1,29 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+module dstress.nocompile.goto_06;
+
+int main(){
+	int i=1;
+	switch(i){
+		case 2:
+			return 0;
+		case 1:
+			switch(i){
+				case 1:
+					goto case 3;
+				default:
+					assert(0);
+			}
+		default:
+			assert(0);
+	}
+
+	switch(i){
+		case 3:
+			assert(0);
+		default:
+			assert(0);
+	}
+}
--- a/run/goto_04.d	Thu Dec 09 06:21:54 2004 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-// $HeadURL$
-// $Date$
-// $Author$
-
-module dstress.nocompile.goto_04;
-
-int main(){
-	int i=1;
-	switch(i){
-		case 1:
-			goto case 2;
-		default:
-			assert(0);
-	}
-}