changeset 1060:039ab9232f59

<BCS@pathlink.com> 2006-06-16 news:e6umde$2ok0$2@digitaldaemon.com
author thomask
date Thu, 29 Jun 2006 19:26:54 +0000
parents 4468ecf152f1
children 5bbc978e55a0
files run/s/switch_22_A.d run/s/switch_22_B.d run/s/switch_22_C.d run/s/switch_22_D.d run/s/switch_22_E.d run/s/switch_22_F.d run/s/switch_22_G.d run/s/switch_22_H.d run/s/switch_22_I.d run/s/switch_22_J.d
diffstat 10 files changed, 254 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/s/switch_22_A.d	Thu Jun 29 19:26:54 2006 +0000
@@ -0,0 +1,23 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	<BCS@pathlink.com>
+// @date@	2006-06-16
+// @uri@	news:e6umde$2ok0$2@digitaldaemon.com
+
+module dstress.run.s.switch_22_A;
+
+int main(){
+	switch(2){
+		int x;
+		x = 3;
+		
+		default:
+			if(x++ != 4){
+				assert(0);
+			}
+	}
+
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/s/switch_22_B.d	Thu Jun 29 19:26:54 2006 +0000
@@ -0,0 +1,25 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	<BCS@pathlink.com>
+// @date@	2006-06-16
+// @uri@	news:e6umde$2ok0$2@digitaldaemon.com
+
+module dstress.run.s.switch_22_B;
+
+int main(){
+	int i;
+	
+	switch(2){
+		scope(exit) i--;
+		
+		default:
+	}
+
+	if(i != -1){
+		assert(0);
+	}
+
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/s/switch_22_C.d	Thu Jun 29 19:26:54 2006 +0000
@@ -0,0 +1,25 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	<BCS@pathlink.com>
+// @date@	2006-06-16
+// @uri@	news:e6umde$2ok0$2@digitaldaemon.com
+
+module dstress.run.s.switch_22_C;
+
+int main(){
+	int i;
+	
+	switch(2){
+		scope(success) i--;
+		
+		default:
+	}
+
+	if(i != -1){
+		assert(0);
+	}
+
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/s/switch_22_D.d	Thu Jun 29 19:26:54 2006 +0000
@@ -0,0 +1,25 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	<BCS@pathlink.com>
+// @date@	2006-06-16
+// @uri@	news:e6umde$2ok0$2@digitaldaemon.com
+
+module dstress.run.s.switch_22_D;
+
+int main(){
+	int i;
+	
+	switch(2){
+		scope(failure) i--;
+		
+		default:
+	}
+
+	if(i != 0){
+		assert(0);
+	}
+
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/s/switch_22_E.d	Thu Jun 29 19:26:54 2006 +0000
@@ -0,0 +1,26 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	<BCS@pathlink.com>
+// @date@	2006-06-16
+// @uri@	news:e6umde$2ok0$2@digitaldaemon.com
+
+module dstress.run.s.switch_22_E;
+
+int main(){
+	int i;
+	
+	switch(2){
+		case 0:
+			scope(failure) i--;
+		
+		default:
+	}
+
+	if(i != 0){
+		assert(0);
+	}
+
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/s/switch_22_F.d	Thu Jun 29 19:26:54 2006 +0000
@@ -0,0 +1,26 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	<BCS@pathlink.com>
+// @date@	2006-06-16
+// @uri@	news:e6umde$2ok0$2@digitaldaemon.com
+
+module dstress.run.s.switch_22_F;
+
+int main(){
+	int i;
+	
+	switch(2){
+		case 0:
+			scope(exit) i--;
+		
+		default:
+	}
+
+	if(i != 0){
+		assert(0);
+	}
+
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/s/switch_22_G.d	Thu Jun 29 19:26:54 2006 +0000
@@ -0,0 +1,26 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	<BCS@pathlink.com>
+// @date@	2006-06-16
+// @uri@	news:e6umde$2ok0$2@digitaldaemon.com
+
+module dstress.run.s.switch_22_G;
+
+int main(){
+	int i;
+	
+	switch(2){
+		case 0:
+			scope(success) i--;
+		
+		default:
+	}
+
+	if(i != 0){
+		assert(0);
+	}
+
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/s/switch_22_H.d	Thu Jun 29 19:26:54 2006 +0000
@@ -0,0 +1,26 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	<BCS@pathlink.com>
+// @date@	2006-06-16
+// @uri@	news:e6umde$2ok0$2@digitaldaemon.com
+
+module dstress.run.s.switch_22_H;
+
+int main(){
+	int i;
+	
+	switch(2){
+		case 2:
+			scope(success) i--;
+		
+		default:
+	}
+
+	if(i != -1){
+		assert(0);
+	}
+
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/s/switch_22_I.d	Thu Jun 29 19:26:54 2006 +0000
@@ -0,0 +1,26 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	<BCS@pathlink.com>
+// @date@	2006-06-16
+// @uri@	news:e6umde$2ok0$2@digitaldaemon.com
+
+module dstress.run.s.switch_22_I;
+
+int main(){
+	int i;
+	
+	switch(2){
+		case 2:
+			scope(exit) i--;
+		
+		default:
+	}
+
+	if(i != -1){
+		assert(0);
+	}
+
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/s/switch_22_J.d	Thu Jun 29 19:26:54 2006 +0000
@@ -0,0 +1,26 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	<BCS@pathlink.com>
+// @date@	2006-06-16
+// @uri@	news:e6umde$2ok0$2@digitaldaemon.com
+
+module dstress.run.s.switch_22_J;
+
+int main(){
+	int i;
+	
+	switch(2){
+		case 2:
+			scope(failure) i--;
+		
+		default:
+	}
+
+	if(i != 0){
+		assert(0);
+	}
+
+	return 0;
+}