changeset 1270:660f9196b52a

partial review
author thomask
date Sat, 23 Dec 2006 12:58:47 +0000
parents c99e8aac0e0c
children d1a257667ede
files nocompile/o/opAssign_21_A.d nocompile/o/opAssign_21_B.d nocompile/o/opAssign_21_C.d nocompile/p/pointer_01_A.d nocompile/p/pointer_01_B.d nocompile/s/set_01_A.d nocompile/s/set_01_B.d nocompile/t/typeof_14_A.d nocompile/t/typeof_14_B.d run/ieee_754_zerosdq_03.d run/ieee_754_zerosdq_04.d run/o/overload_23.d run/o/overload_24.d run/p/private_09_A.d run/p/private_09_B.d run/p/private_09_C.d run/p/private_09_D.d run/ptr_04.d run/struct_initialization_06.d run/t/template_40_B.d run/t/template_class_13_M.d run/t/template_class_13_N.d run/t/template_class_13_O.d run/t/template_class_13_P.d run/t/template_class_13_Q.d run/t/template_class_13_R.d run/t/template_class_13_S.d run/t/template_class_13_T.d run/t/template_class_13_U.d run/t/template_class_13_V.d run/t/template_class_13_W.d run/t/template_class_13_X.d
diffstat 32 files changed, 92 insertions(+), 32 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/o/opAssign_21_A.d	Sat Dec 23 12:58:47 2006 +0000
@@ -0,0 +1,16 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Thomas Kühne <thomas-dloop@kuehne.cn>
+// @date@	2006-12-23
+
+// __DSTRESS_ELINE__ 16
+
+module dstress.nocompile.o.opMulAssign_21_A;
+
+void foo(){
+	ifloat a = 1.0fi;
+	a *= 2.0fi;
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/o/opAssign_21_B.d	Sat Dec 23 12:58:47 2006 +0000
@@ -0,0 +1,16 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Thomas Kühne <thomas-dloop@kuehne.cn>
+// @date@	2006-12-23
+
+// __DSTRESS_ELINE__ 16
+
+module dstress.nocompile.o.opMulAssign_21_B;
+
+void foo(){
+	idouble a = 1.0i;
+	a *= 2.0i;
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/o/opAssign_21_C.d	Sat Dec 23 12:58:47 2006 +0000
@@ -0,0 +1,16 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Thomas Kühne <thomas-dloop@kuehne.cn>
+// @date@	2006-12-23
+
+// __DSTRESS_ELINE__ 16
+
+module dstress.nocompile.o.opMulAssign_21_C;
+
+void foo(){
+	ireal a = 1.0Li;
+	a *= 2.0Li;
+}
+
--- a/nocompile/p/pointer_01_A.d	Fri Dec 22 13:17:55 2006 +0000
+++ b/nocompile/p/pointer_01_A.d	Sat Dec 23 12:58:47 2006 +0000
@@ -6,7 +6,7 @@
 // @date@	2005-09-02
 // @uri@	news:df9of8$pj5$1@digitaldaemon.com
 
-// __DSTRESS_ELINE__ 20
+// __DSTRESS_ELINE__ 21
 
 module dstress.nocompile.p.pointer_01_A;
 
@@ -14,8 +14,9 @@
 }
 
 int f(int i){
+	return 0;
 }
 
 void main(){
 	void* v = &f;
-}
\ No newline at end of file
+}
--- a/nocompile/p/pointer_01_B.d	Fri Dec 22 13:17:55 2006 +0000
+++ b/nocompile/p/pointer_01_B.d	Sat Dec 23 12:58:47 2006 +0000
@@ -6,11 +6,12 @@
 // @date@	2005-09-02
 // @uri@	news:df9of8$pj5$1@digitaldaemon.com
 
-// __DSTRESS_ELINE__ 20
+// __DSTRESS_ELINE__ 21
 
 module dstress.nocompile.p.pointer_01_B;
 
 int f(int i){
+	return 0;
 }
 
 void f(){
@@ -18,4 +19,4 @@
 
 void main(){
 	void* v = &f;
-}
\ No newline at end of file
+}
--- a/nocompile/s/set_01_A.d	Fri Dec 22 13:17:55 2006 +0000
+++ b/nocompile/s/set_01_A.d	Sat Dec 23 12:58:47 2006 +0000
@@ -4,7 +4,7 @@
 
 // Porting: C#
 
-// __DSTRESS_ELINE__ 15
+// __DSTRESS_ELINE__ 14
 
 module dstress.nocompile.s.set_01_A;
 
--- a/nocompile/s/set_01_B.d	Fri Dec 22 13:17:55 2006 +0000
+++ b/nocompile/s/set_01_B.d	Sat Dec 23 12:58:47 2006 +0000
@@ -4,7 +4,7 @@
 
 // Porting: C#
 
-// __DSTRESS_ELINE__ 15
+// __DSTRESS_ELINE__ 14
 
 module dstress.nocompile.s.set_01_B;
 
--- a/nocompile/t/typeof_14_A.d	Fri Dec 22 13:17:55 2006 +0000
+++ b/nocompile/t/typeof_14_A.d	Sat Dec 23 12:58:47 2006 +0000
@@ -7,7 +7,7 @@
 // @uri@	news:bug-405-3@http.d.puremagic.com/issues/
 // @desc@	[Issue 405] New: typeof in TemplateParameterList causes compiletime segmentfault
 
-// __DSTRESS_ELINE__ 13
+// __DSTRESS_ELINE__ 14
 
 module dstress.nocompile.t.typeof_14_A;
 
--- a/nocompile/t/typeof_14_B.d	Fri Dec 22 13:17:55 2006 +0000
+++ b/nocompile/t/typeof_14_B.d	Sat Dec 23 12:58:47 2006 +0000
@@ -7,7 +7,7 @@
 // @uri@	news:bug-405-3@http.d.puremagic.com/issues/
 // @desc@	[Issue 405] New: typeof in TemplateParameterList causes compiletime segmentfault
 
-// __DSTRESS_ELINE__ 13
+// __DSTRESS_ELINE__ 14
 
 module dstress.nocompile.t.typeof_14_B;
 
--- a/run/ieee_754_zerosdq_03.d	Fri Dec 22 13:17:55 2006 +0000
+++ b/run/ieee_754_zerosdq_03.d	Sat Dec 23 12:58:47 2006 +0000
@@ -35,13 +35,13 @@
 	}
 
 	s.f = 0.0fi;
-	s.f *= 1.0fi;
+	s.f *= 1.0f;
 	if(s.i != 0x00000000){
 		assert(0);
 	}
 
 	s.f = 0.0fi;
-	s.f *= -1.0fi;
+	s.f *= -1.0f;
 	if(s.i != 0x80000000){
 		assert(0);
 	}
--- a/run/ieee_754_zerosdq_04.d	Fri Dec 22 13:17:55 2006 +0000
+++ b/run/ieee_754_zerosdq_04.d	Sat Dec 23 12:58:47 2006 +0000
@@ -38,13 +38,13 @@
 	}
 
 	s.f = 0.0i;
-	s.f *= 1.0i;
+	s.f *= 1.0;
 	if(s.i[top] != 0x00000000){
 		assert(0);
 	}
 
 	s.f = 0.0i;
-	s.f *= -1.0i;
+	s.f *= -1.0;
 	if(s.i[top] != 0x80000000){
 		assert(0);
 	}
--- a/run/o/overload_23.d	Fri Dec 22 13:17:55 2006 +0000
+++ b/run/o/overload_23.d	Sat Dec 23 12:58:47 2006 +0000
@@ -32,7 +32,7 @@
 	}
 
 	Base bd = new Derived;
-	if(bd.name != "derived"){
+	if(bd.name != "base"){
 		assert(0);
 	}
 	return 0;
--- a/run/o/overload_24.d	Fri Dec 22 13:17:55 2006 +0000
+++ b/run/o/overload_24.d	Sat Dec 23 12:58:47 2006 +0000
@@ -31,12 +31,12 @@
 	}
 
 	Derived d = new Derived;
-	if(d.test != "derived"){
+	if(d.test != "base"){
 		assert(0);
 	}
 
 	Base bd = new Derived;
-	if(bd.test != "derived"){
+	if(bd.test != "base"){
 		assert(0);
 	}
 	return 0;
--- a/run/p/private_09_A.d	Fri Dec 22 13:17:55 2006 +0000
+++ b/run/p/private_09_A.d	Sat Dec 23 12:58:47 2006 +0000
@@ -6,6 +6,8 @@
 // @date@	2005-12-17
 // @uri@	news:do2bam$2ab0$1@digitaldaemon.com
 
+// __DSTRESS_TORTURE_BLOCK__ -release
+
 module dstress.run.p.private_09_A;
 
 class Base{
--- a/run/p/private_09_B.d	Fri Dec 22 13:17:55 2006 +0000
+++ b/run/p/private_09_B.d	Sat Dec 23 12:58:47 2006 +0000
@@ -6,6 +6,8 @@
 // @date@	2005-12-17
 // @uri@	news:do2bam$2ab0$1@digitaldaemon.com
 
+// __DSTRESS_TORTURE_BLOCK__ -release
+
 module dstress.run.p.private_09_B;
 
 class Base (T) {
--- a/run/p/private_09_C.d	Fri Dec 22 13:17:55 2006 +0000
+++ b/run/p/private_09_C.d	Sat Dec 23 12:58:47 2006 +0000
@@ -6,6 +6,8 @@
 // @date@	2005-12-17
 // @uri@	news:do2bam$2ab0$1@digitaldaemon.com
 
+// __DSTRESS_TORTURE_BLOCK__ -release
+
 module dstress.run.p.private_09_C;
 
 class Base {
--- a/run/p/private_09_D.d	Fri Dec 22 13:17:55 2006 +0000
+++ b/run/p/private_09_D.d	Sat Dec 23 12:58:47 2006 +0000
@@ -6,6 +6,8 @@
 // @date@	2005-12-17
 // @uri@	news:do2bam$2ab0$1@digitaldaemon.com
 
+// __DSTRESS_TORTURE_BLOCK__ -release
+
 module dstress.run.p.private_09_D;
 
 class Base(T){
--- a/run/ptr_04.d	Fri Dec 22 13:17:55 2006 +0000
+++ b/run/ptr_04.d	Sat Dec 23 12:58:47 2006 +0000
@@ -7,7 +7,9 @@
 int main(){
 	Object[0] array;
 
-	assert(!(array.ptr is null));
+	if(!(array.ptr is null)){
+		assert(0);
+	}
 
 	return 0;
 }
--- a/run/struct_initialization_06.d	Fri Dec 22 13:17:55 2006 +0000
+++ b/run/struct_initialization_06.d	Sat Dec 23 12:58:47 2006 +0000
@@ -11,10 +11,10 @@
 
 struct A {
 	int one;
-	int two[4];
+	int[4] two = 2;
 }
 
-A a = { one:1, two:2 };
+A a = { one:1 };
 
 int main(){
 	if(a.one != 1){
--- a/run/t/template_40_B.d	Fri Dec 22 13:17:55 2006 +0000
+++ b/run/t/template_40_B.d	Sat Dec 23 12:58:47 2006 +0000
@@ -21,10 +21,10 @@
 }
 
 int main(){
-	if(! is(Bar.Inner!())){
+	if(! is(typeof(Bar.Inner!()) == int)){
 		assert(0);
 	}
-	if(! is(Bar.dummy)){
+	if(! is(typeof(Bar.dummy) == int)){
 		assert(0);
 	}
 
--- a/run/t/template_class_13_M.d	Fri Dec 22 13:17:55 2006 +0000
+++ b/run/t/template_class_13_M.d	Sat Dec 23 12:58:47 2006 +0000
@@ -17,7 +17,7 @@
 
 	const cfloat b = -0.8f - 0.1fi;
 	C!(b) sb = new C!(b);
-	if(sa.cf != b){
+	if(sb.cf != b){
 		assert(0);
 	}
 
--- a/run/t/template_class_13_N.d	Fri Dec 22 13:17:55 2006 +0000
+++ b/run/t/template_class_13_N.d	Sat Dec 23 12:58:47 2006 +0000
@@ -17,7 +17,7 @@
 
 	const cfloat b = -0.8f - 0.1fi;
 	C!(b) sb = new C!(b);
-	if(sa.cf != b){
+	if(sb.cf != b){
 		assert(0);
 	}
 
--- a/run/t/template_class_13_O.d	Fri Dec 22 13:17:55 2006 +0000
+++ b/run/t/template_class_13_O.d	Sat Dec 23 12:58:47 2006 +0000
@@ -17,7 +17,7 @@
 
 	const cfloat b = -0.8f - 0.1fi;
 	auto sb = new C!(b);
-	if(sa.cf != b){
+	if(sb.cf != b){
 		assert(0);
 	}
 
--- a/run/t/template_class_13_P.d	Fri Dec 22 13:17:55 2006 +0000
+++ b/run/t/template_class_13_P.d	Sat Dec 23 12:58:47 2006 +0000
@@ -17,7 +17,7 @@
 
 	const cfloat b = -0.8f - 0.1fi;
 	auto sb = new C!(b);
-	if(sa.cf != b){
+	if(sb.cf != b){
 		assert(0);
 	}
 
--- a/run/t/template_class_13_Q.d	Fri Dec 22 13:17:55 2006 +0000
+++ b/run/t/template_class_13_Q.d	Sat Dec 23 12:58:47 2006 +0000
@@ -17,7 +17,7 @@
 
 	const cdouble b = -0.8 - 0.1i;
 	C!(b) sb = new C!(b);
-	if(sa.cf != b){
+	if(sb.cf != b){
 		assert(0);
 	}
 
--- a/run/t/template_class_13_R.d	Fri Dec 22 13:17:55 2006 +0000
+++ b/run/t/template_class_13_R.d	Sat Dec 23 12:58:47 2006 +0000
@@ -17,7 +17,7 @@
 
 	const cdouble b = -0.8 - 0.1i;
 	C!(b) sb = new C!(b);
-	if(sa.cf != b){
+	if(sb.cf != b){
 		assert(0);
 	}
 
--- a/run/t/template_class_13_S.d	Fri Dec 22 13:17:55 2006 +0000
+++ b/run/t/template_class_13_S.d	Sat Dec 23 12:58:47 2006 +0000
@@ -17,7 +17,7 @@
 
 	const cdouble b = -0.8 - 0.1i;
 	auto sb = new C!(b);
-	if(sa.cf != b){
+	if(sb.cf != b){
 		assert(0);
 	}
 
--- a/run/t/template_class_13_T.d	Fri Dec 22 13:17:55 2006 +0000
+++ b/run/t/template_class_13_T.d	Sat Dec 23 12:58:47 2006 +0000
@@ -17,7 +17,7 @@
 
 	const cdouble b = -0.8 - 0.1i;
 	auto sb = new C!(b);
-	if(sa.cf != b){
+	if(sb.cf != b){
 		assert(0);
 	}
 
--- a/run/t/template_class_13_U.d	Fri Dec 22 13:17:55 2006 +0000
+++ b/run/t/template_class_13_U.d	Sat Dec 23 12:58:47 2006 +0000
@@ -17,7 +17,7 @@
 
 	const creal b = -0.8L - 0.1Li;
 	C!(b) sb = new C!(b);
-	if(sa.cf != b){
+	if(sb.cf != b){
 		assert(0);
 	}
 
--- a/run/t/template_class_13_V.d	Fri Dec 22 13:17:55 2006 +0000
+++ b/run/t/template_class_13_V.d	Sat Dec 23 12:58:47 2006 +0000
@@ -17,7 +17,7 @@
 
 	const creal b = -0.8L - 0.1Li;
 	C!(b) sb = new C!(b);
-	if(sa.cf != b){
+	if(sb.cf != b){
 		assert(0);
 	}
 
--- a/run/t/template_class_13_W.d	Fri Dec 22 13:17:55 2006 +0000
+++ b/run/t/template_class_13_W.d	Sat Dec 23 12:58:47 2006 +0000
@@ -17,7 +17,7 @@
 
 	const creal b = -0.8L - 0.1Li;
 	auto sb = new C!(b);
-	if(sa.cf != b){
+	if(sb.cf != b){
 		assert(0);
 	}
 
--- a/run/t/template_class_13_X.d	Fri Dec 22 13:17:55 2006 +0000
+++ b/run/t/template_class_13_X.d	Sat Dec 23 12:58:47 2006 +0000
@@ -17,7 +17,7 @@
 
 	const creal b = -0.8L - 0.1Li;
 	auto sb = new C!(b);
-	if(sa.cf != b){
+	if(sb.cf != b){
 		assert(0);
 	}