changeset 1041:eb555fb95efc

added GDC-0.18 results
author thomask
date Sun, 04 Jun 2006 06:28:03 +0000
parents a3d6bbc8dec0
children f34b7d4a2db7
files run/o/opAndAnd_02_A.d run/o/opAndAnd_02_B.d
diffstat 2 files changed, 62 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/o/opAndAnd_02_A.d	Sun Jun 04 06:28:03 2006 +0000
@@ -0,0 +1,31 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	<clugdbug@yahoo.com.au>
+// @date@	2006-05-29
+// @uri@	news:bug-160-3@http.d.puremagic.com/bugzilla/
+
+module dstress.run.o.opAndAnd_02_A;
+
+template fish(){
+	static assert(0);
+	bool fish = true;
+}
+
+template dog(char [] bird){
+	static if(bird.length > 99){
+		const int dog = 2;
+	}else{
+		const int dog = 3;
+	}
+}
+
+const int pig = dog!("a");
+
+int main(){
+	if(pig != 3){
+		assert(0);
+	}
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/o/opAndAnd_02_B.d	Sun Jun 04 06:28:03 2006 +0000
@@ -0,0 +1,31 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	<clugdbug@yahoo.com.au>
+// @date@	2006-05-29
+// @uri@	news:bug-160-3@http.d.puremagic.com/bugzilla/
+
+module dstress.run.o.opAndAnd_02_B;
+
+template fish(){
+	static assert(0);
+	bool fish = true;
+}
+
+template dog(char [] bird){
+	static if ((bird.length > 99) && fish!()){
+		const int dog = 2;
+	}else{
+		const int dog = 3;
+	}
+}
+
+const int pig = dog!("a");
+
+int main(){
+	if(pig != 3){
+		assert(0);
+	}
+	return 0;
+}