changeset 1059:4468ecf152f1

<daiphoenix@lycos.com> 2006-03-14 news:bug-47-3@http.d.puremagic.com/bugzilla/
author thomask
date Thu, 29 Jun 2006 13:26:39 +0000
parents ac5e9884d08b
children 039ab9232f59
files nocompile/s/scope_03_E.d nocompile/s/scope_03_F.d nocompile/s/scope_12_E.d run/d/debug_info_10_B.d run/goto_07.d run/s/scope_03_A.d run/s/scope_03_B.d run/s/scope_12_A.d run/s/scope_12_B.d run/s/scope_12_C.d run/s/scope_12_D.d
diffstat 11 files changed, 106 insertions(+), 106 deletions(-) [+]
line wrap: on
line diff
--- a/nocompile/s/scope_03_E.d	Thu Jun 29 13:26:28 2006 +0000
+++ b/nocompile/s/scope_03_E.d	Thu Jun 29 13:26:39 2006 +0000
@@ -2,7 +2,7 @@
 // $Date$
 // $Author$
 
-// __DSTRESS_ELINE__ 16
+// __DSTRESS_ELINE__ 14
 
 module dstress.nocompile.s.scope_03_E;
 
@@ -12,8 +12,6 @@
 
 	{
 		const int x = 3;
-		
-		static assert(.x);
 	}
 }
 	
--- a/nocompile/s/scope_03_F.d	Thu Jun 29 13:26:28 2006 +0000
+++ b/nocompile/s/scope_03_F.d	Thu Jun 29 13:26:39 2006 +0000
@@ -2,7 +2,7 @@
 // $Date$
 // $Author$
 
-// __DSTRESS_ELINE__ 16
+// __DSTRESS_ELINE__ 14
 
 module dstress.nocompile.s.scope_03_F;
 
@@ -12,8 +12,6 @@
 
 	{
 		int x = 3;
-		
-		assert(.x);
 	}
 }
 	
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/s/scope_12_E.d	Thu Jun 29 13:26:39 2006 +0000
@@ -0,0 +1,21 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	<daiphoenix@lycos.com>
+// @date@	2006-03-14
+// @uri@	news:bug-47-3@http.d.puremagic.com/bugzilla/
+
+// __DSTRESS_ELINE__ 17
+
+module dstress.nocompile.s.scope_12_E;
+
+int main(){
+	int y;
+	
+	{
+		int y;
+	}
+
+	return 0;
+}
--- a/run/d/debug_info_10_B.d	Thu Jun 29 13:26:28 2006 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,28 +0,0 @@
-// $HeadURL$
-// $Date$
-// $Author$
-
-// __DSTRESS_TORTURE_REQUIRE__ -g
-// __GDB_SCRIPT__ break debug_info_10_B.d:23\nrun\nprint i
-// __GDB_PATTERN__ 1 = 5678
-
-module dstress.run.d.debug_info_10_A;
-
-int i = 1234;
-
-int main(char[][] args){
-	int i = 5678 + args.length / 1000;
-
-	{
-		int i = 9002 + args.length / 1000;
-		if(i % 2){
-			assert(0);
-		}
-	}
-
-	if(i % 4){
-		return 0;
-	}
-
-	assert(0);
-}
--- a/run/goto_07.d	Thu Jun 29 13:26:28 2006 +0000
+++ b/run/goto_07.d	Thu Jun 29 13:26:39 2006 +0000
@@ -6,15 +6,15 @@
 
 int main(){
 
-	int label=1;
+	int a = 1;
 	if(0){
-label:
-		int label=2;
-		assert(label==2);		
+a:
+		int b = 2;
+		assert(b == 2);
 	}else{
-		assert(label==1);
-		goto label;
+		assert(a == 1);
+		goto a;
 	}
-	assert(label==1);
+	assert(a == 1);
 	return 0;
 }
--- a/run/s/scope_03_A.d	Thu Jun 29 13:26:28 2006 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,37 +0,0 @@
-// $HeadURL$
-// $Date$
-// $Author$
-
-module dstress.run.s.scope_03_A;
-
-int x;
-
-int main(){
-	x = 1;
-
-	int x;
-	x = 2;
-
-	{
-		int x;
-		x = 3;
-		
-		if(.x != 1){
-			assert(0);
-		}
-		if(x != 3){
-			assert(0);
-		}
-	}
-
-	if(.x != 1){
-		assert(0);
-	}
-
-	if(x != 2){
-		assert(0);
-	}
-
-	return 0;
-}
-	
--- a/run/s/scope_03_B.d	Thu Jun 29 13:26:28 2006 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,28 +0,0 @@
-// $HeadURL$
-// $Date$
-// $Author$
-
-module dstress.run.s.scope_03_B;
-
-const int x = 1;
-
-int main(){
-	static assert(x == 1);
-	static assert(.x == 1);
-	
-	const int x = 2;
-	static assert(x == 2);
-	static assert(.x == 1);
-
-	{
-		const int x = 3;
-		static assert(x == 3);
-		static assert(.x == 1);
-	}
-
-	static assert(x == 2);
-	static assert(.x == 1);
-
-	return 0;
-}
-	
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/s/scope_12_A.d	Thu Jun 29 13:26:39 2006 +0000
@@ -0,0 +1,19 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	<daiphoenix@lycos.com>
+// @date@	2006-03-14
+// @uri@	news:bug-47-3@http.d.puremagic.com/bugzilla/
+
+module dstress.run.s.scope_12_A;
+
+int main(){
+	{
+		int y;
+	}
+	{
+		int y;
+	}
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/s/scope_12_B.d	Thu Jun 29 13:26:39 2006 +0000
@@ -0,0 +1,19 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	<daiphoenix@lycos.com>
+// @date@	2006-03-14
+// @uri@	news:bug-47-3@http.d.puremagic.com/bugzilla/
+
+module dstress.run.s.scope_12_B;
+
+int main(){
+	int y;
+	
+	struct S{
+		int y;
+	}
+
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/s/scope_12_C.d	Thu Jun 29 13:26:39 2006 +0000
@@ -0,0 +1,19 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	<daiphoenix@lycos.com>
+// @date@	2006-03-14
+// @uri@	news:bug-47-3@http.d.puremagic.com/bugzilla/
+
+module dstress.run.s.scope_12_C;
+
+int main(){
+	int y;
+	
+	class S{
+		int y;
+	}
+
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/s/scope_12_D.d	Thu Jun 29 13:26:39 2006 +0000
@@ -0,0 +1,19 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	<daiphoenix@lycos.com>
+// @date@	2006-03-14
+// @uri@	news:bug-47-3@http.d.puremagic.com/bugzilla/
+
+module dstress.run.s.scope_12_D;
+
+int main(){
+	int y;
+	
+	enum E{
+		y
+	}
+
+	return 0;
+}