changeset 934:5e597b3bfbca

<godaves@yahoo.com> 2006-03-26 news:bug-74-3@http.d.puremagic.com/bugzilla/
author thomask
date Sun, 26 Mar 2006 10:22:58 +0000
parents e5e887423299
children 89f09dbb06b6
files run/i/if_14_A.d run/i/if_14_B.d run/i/if_14_C.d run/i/if_14_D.d run/i/if_14_E.d run/i/if_14_F.d run/i/if_14_G.d run/i/if_14_H.d
diffstat 8 files changed, 272 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/i/if_14_A.d	Sun Mar 26 10:22:58 2006 +0000
@@ -0,0 +1,33 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	<godaves@yahoo.com>
+// @date@	2006-03-26
+// @uri@	news:bug-74-3@http.d.puremagic.com/bugzilla/
+
+module dstress.run.i.if_14_A;
+
+int test(int i){
+	if(int j = i * i)
+		return j;
+	else
+		return 10;
+}
+
+int main(){
+	if(test(1) != 1){
+		assert(0);
+	}
+
+	if(test(0) != 10){
+		assert(0);
+	}
+
+	if(test(-3) != 9){
+		assert(0);
+	}
+
+	return 0;
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/i/if_14_B.d	Sun Mar 26 10:22:58 2006 +0000
@@ -0,0 +1,34 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	<godaves@yahoo.com>
+// @date@	2006-03-26
+// @uri@	news:bug-74-3@http.d.puremagic.com/bugzilla/
+
+module dstress.run.i.if_14_B;
+
+int test(int i){
+	if(int j = i * i){
+		return j;
+	}else{
+		return 10;
+	}
+}
+
+int main(){
+	if(test(1) != 1){
+		assert(0);
+	}
+
+	if(test(0) != 10){
+		assert(0);
+	}
+
+	if(test(-3) != 9){
+		assert(0);
+	}
+
+	return 0;
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/i/if_14_C.d	Sun Mar 26 10:22:58 2006 +0000
@@ -0,0 +1,35 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	<godaves@yahoo.com>
+// @date@	2006-03-26
+// @uri@	news:bug-74-3@http.d.puremagic.com/bugzilla/
+
+module dstress.run.i.if_14_C;
+
+int test(int i){
+	int j = i * i;
+	if(j){
+		return j;
+	}else{
+		return 10;
+	}
+}
+
+int main(){
+	if(test(1) != 1){
+		assert(0);
+	}
+
+	if(test(0) != 10){
+		assert(0);
+	}
+
+	if(test(-3) != 9){
+		assert(0);
+	}
+
+	return 0;
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/i/if_14_D.d	Sun Mar 26 10:22:58 2006 +0000
@@ -0,0 +1,34 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	<godaves@yahoo.com>
+// @date@	2006-03-26
+// @uri@	news:bug-74-3@http.d.puremagic.com/bugzilla/
+
+module dstress.run.i.if_14_D;
+
+int test(int i){
+	int j = i * i;
+	if(j)
+		return j;
+	else
+		return 10;
+}
+
+int main(){
+	if(test(1) != 1){
+		assert(0);
+	}
+
+	if(test(0) != 10){
+		assert(0);
+	}
+
+	if(test(-3) != 9){
+		assert(0);
+	}
+
+	return 0;
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/i/if_14_E.d	Sun Mar 26 10:22:58 2006 +0000
@@ -0,0 +1,34 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	<godaves@yahoo.com>
+// @date@	2006-03-26
+// @uri@	news:bug-74-3@http.d.puremagic.com/bugzilla/
+
+module dstress.run.i.if_14_E;
+
+int test(int i){
+	auto j = i * i;
+	if(j)
+		return j;
+	else
+		return 10;
+}
+
+int main(){
+	if(test(1) != 1){
+		assert(0);
+	}
+
+	if(test(0) != 10){
+		assert(0);
+	}
+
+	if(test(-3) != 9){
+		assert(0);
+	}
+
+	return 0;
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/i/if_14_F.d	Sun Mar 26 10:22:58 2006 +0000
@@ -0,0 +1,35 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	<godaves@yahoo.com>
+// @date@	2006-03-26
+// @uri@	news:bug-74-3@http.d.puremagic.com/bugzilla/
+
+module dstress.run.i.if_14_F;
+
+int test(int i){
+	auto j = i * i;
+	if(j){
+		return j;
+	}else{
+		return 10;
+	}
+}
+
+int main(){
+	if(test(1) != 1){
+		assert(0);
+	}
+
+	if(test(0) != 10){
+		assert(0);
+	}
+
+	if(test(-3) != 9){
+		assert(0);
+	}
+
+	return 0;
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/i/if_14_G.d	Sun Mar 26 10:22:58 2006 +0000
@@ -0,0 +1,34 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	<godaves@yahoo.com>
+// @date@	2006-03-26
+// @uri@	news:bug-74-3@http.d.puremagic.com/bugzilla/
+
+module dstress.run.i.if_14_G;
+
+int test(int i){
+	if(auto j = i * i){
+		return j;
+	}else{
+		return 10;
+	}
+}
+
+int main(){
+	if(test(1) != 1){
+		assert(0);
+	}
+
+	if(test(0) != 10){
+		assert(0);
+	}
+
+	if(test(-3) != 9){
+		assert(0);
+	}
+
+	return 0;
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/i/if_14_H.d	Sun Mar 26 10:22:58 2006 +0000
@@ -0,0 +1,33 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	<godaves@yahoo.com>
+// @date@	2006-03-26
+// @uri@	news:bug-74-3@http.d.puremagic.com/bugzilla/
+
+module dstress.run.i.if_14_H;
+
+int test(int i){
+	if(auto j = i * i)
+		return j;
+	else
+		return 10;
+}
+
+int main(){
+	if(test(1) != 1){
+		assert(0);
+	}
+
+	if(test(0) != 10){
+		assert(0);
+	}
+
+	if(test(-3) != 9){
+		assert(0);
+	}
+
+	return 0;
+}
+