changeset 1050:7f312e8ff5b6

<ericanderton@yahoo.com> 2006-06-16 news:bug-199-3@http.d.puremagic.com/issues/
author thomask
date Thu, 29 Jun 2006 13:24:51 +0000
parents 32c1be40d218
children 7106229d4169
files run/s/scope_13_A.d run/s/scope_13_B.d
diffstat 2 files changed, 55 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/s/scope_13_A.d	Thu Jun 29 13:24:51 2006 +0000
@@ -0,0 +1,26 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	<ericanderton@yahoo.com>
+// @date@	2006-06-16
+// @uri@	news:bug-199-3@http.d.puremagic.com/issues/
+
+module dstress.run.s.scope_13_A;
+
+int main(){
+	int i;
+	
+label: 
+	{
+		scope(exit) i++;
+		i=3;
+	}
+
+	if(i != 4){
+		assert(0);
+	}
+
+
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/s/scope_13_B.d	Thu Jun 29 13:24:51 2006 +0000
@@ -0,0 +1,29 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	<ericanderton@yahoo.com>
+// @date@	2006-06-16
+// @uri@	news:bug-199-3@http.d.puremagic.com/issues/
+
+module dstress.run.s.scope_13_B;
+
+int main(){
+	int i;
+	
+label:
+	{
+	}
+
+	{
+		scope(exit) i++;
+		i=3;
+	}
+
+	if(i != 4){
+		assert(0);
+	}
+
+
+	return 0;
+}