changeset 516:592f9ae41ba5

post DMD-0.122 review [1+2/n]
author thomask
date Tue, 10 May 2005 23:59:14 +0000
parents c7748379f0ce
children 79242ce0cf34
files nocompile/array_initialization_09.d nocompile/bug_cgcod_1445_B.d nocompile/bug_constfold_575_A.d nocompile/bug_constfold_575_B.d nocompile/bug_constfold_575_C.d nocompile/bug_constfold_575_J.d nocompile/bug_constfold_575_O.d nocompile/bug_constfold_575_R.d nocompile/class_12.d nocompile/class_13.d nocompile/class_14.d nocompile/class_15.d nocompile/delete_02.d nocompile/interface_14.d run/auto_01.d run/bug_cgcs_353_J.d run/bug_cod2_4211_J.d run/bug_constfold_575_A.d run/bug_constfold_575_B.d run/bug_constfold_575_C.d run/bug_constfold_575_J.d run/bug_constfold_575_O.d run/bug_constfold_575_R.d run/constructor_08.d run/delete_02.d run/html_line_ending_mac.html run/in_out_body_03.d
diffstat 27 files changed, 162 insertions(+), 148 deletions(-) [+]
line wrap: on
line diff
--- a/nocompile/array_initialization_09.d	Tue May 10 23:53:52 2005 +0000
+++ b/nocompile/array_initialization_09.d	Tue May 10 23:59:14 2005 +0000
@@ -11,7 +11,7 @@
 module dstress.nocompile.array_initialization_09;
 
 int main(){
-	char a[int.max/32];
+	version(X86){char a[int.max+1];}else{static assert(0);}
 	return 0;
 }
 
--- a/nocompile/bug_cgcod_1445_B.d	Tue May 10 23:53:52 2005 +0000
+++ b/nocompile/bug_cgcod_1445_B.d	Tue May 10 23:59:14 2005 +0000
@@ -6,7 +6,7 @@
 // @date@	2005-03-23
 // @uri@	news:d1sald$2u6e$1@digitaldaemon.com
 
-// __DSTRESS_ELINE__ 17
+// __DSTRESS_ELINE__ 13
 
 module dstress.nocompile.bug_cgcod_1445_B;
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/bug_constfold_575_A.d	Tue May 10 23:59:14 2005 +0000
@@ -0,0 +1,18 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	David L. Davis <SpottedTiger@yahoo.com>
+// @date@	2005-04-24
+// @uri@	news:d4deen$1j8c$1@digitaldaemon.com
+
+// __DSTRESS_ELINE__ 14
+
+module dstress.nocompile.bug_constfold_575_A;
+
+int main(){
+	if (cfloat.min > cfloat.max){
+		assert(0);
+	}
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/bug_constfold_575_B.d	Tue May 10 23:59:14 2005 +0000
@@ -0,0 +1,18 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	David L. Davis <SpottedTiger@yahoo.com>
+// @date@	2005-04-24
+// @uri@	news:d4deen$1j8c$1@digitaldaemon.com
+
+// __DSTRESS_ELINE__ 14
+
+module dstress.nocompile.bug_constfold_575_B;
+
+int main(){
+	if (cdouble.min > cdouble.max){
+		assert(0);
+	}
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/bug_constfold_575_C.d	Tue May 10 23:59:14 2005 +0000
@@ -0,0 +1,18 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	David L. Davis <SpottedTiger@yahoo.com>
+// @date@	2005-04-24
+// @uri@	news:d4deen$1j8c$1@digitaldaemon.com
+
+// __DSTRESS_ELINE__ 14
+
+module dstress.nocompile.bug_constfold_575_C;
+
+int main(){
+	if (creal.min > creal.max){
+		assert(0);
+	}
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/bug_constfold_575_J.d	Tue May 10 23:59:14 2005 +0000
@@ -0,0 +1,20 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	David L. Davis <SpottedTiger@yahoo.com>
+// @date@	2005-04-24
+// @uri@	news:d4deen$1j8c$1@digitaldaemon.com
+
+// __DSTRESS_ELINE__ 16
+
+module dstress.nocompile.bug_constfold_575_J;
+
+int main(){
+	cfloat a=cfloat.min;
+	cfloat b=cfloat.max;
+	if (a > b){
+		assert(0);
+	}
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/bug_constfold_575_O.d	Tue May 10 23:59:14 2005 +0000
@@ -0,0 +1,20 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	David L. Davis <SpottedTiger@yahoo.com>
+// @date@	2005-04-24
+// @uri@	news:d4deen$1j8c$1@digitaldaemon.com
+
+// __DSTRESS_ELINE__ 16
+
+module dstress.nocompile.run.bug_constfold_575_O;
+
+int main(){
+	cdouble a=cdouble.min;
+	cdouble b=cdouble.max;
+	if (a > b){
+		assert(0);
+	}
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/bug_constfold_575_R.d	Tue May 10 23:59:14 2005 +0000
@@ -0,0 +1,20 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	David L. Davis <SpottedTiger@yahoo.com>
+// @date@	2005-04-24
+// @uri@	news:d4deen$1j8c$1@digitaldaemon.com
+
+// __DSTRESS_ELINE__ 16
+
+module dstress.nocompile.bug_constfold_575_R;
+
+int main(){
+	creal a=creal.min;
+	creal b=creal.max;
+	if (a > b){
+		assert(0);
+	}
+	return 0;
+}
--- a/nocompile/class_12.d	Tue May 10 23:53:52 2005 +0000
+++ b/nocompile/class_12.d	Tue May 10 23:59:14 2005 +0000
@@ -10,4 +10,4 @@
 
 module dstress.nocompile.class_11;
 
-class 
+class 
\ No newline at end of file
--- a/nocompile/class_13.d	Tue May 10 23:53:52 2005 +0000
+++ b/nocompile/class_13.d	Tue May 10 23:59:14 2005 +0000
@@ -6,7 +6,7 @@
 // @date@	2005-04-20
 // @uri@	news:d452i6$2ker$1@digitaldaemon.com
 
-// __DSTRESS_ELINE__ 19
+// __DSTRESS_ELINE__ 13
 
 module dstress.nocompile.class_13;
 
--- a/nocompile/class_14.d	Tue May 10 23:53:52 2005 +0000
+++ b/nocompile/class_14.d	Tue May 10 23:59:14 2005 +0000
@@ -6,7 +6,7 @@
 // @date@	2005-04-20
 // @uri@	news:d452i6$2ker$1@digitaldaemon.com
 
-// __DSTRESS_ELINE__ 16
+// __DSTRESS_ELINE__ 13
 
 module dstress.nocompile.class_14;
 
--- a/nocompile/class_15.d	Tue May 10 23:53:52 2005 +0000
+++ b/nocompile/class_15.d	Tue May 10 23:59:14 2005 +0000
@@ -6,7 +6,7 @@
 // @date@	2005-04-20
 // @uri@	news:d452oo$2km6$1@digitaldaemon.com
 
-// __DSTRESS_ELINE__ 17
+// __DSTRESS_ELINE__ 13
 
 module dstress.nocompile.class_15;
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/delete_02.d	Tue May 10 23:59:14 2005 +0000
@@ -0,0 +1,35 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @WARNING@ direct usage of Phobos's GC
+
+// __DSTRESS_ELINE__ 26
+
+module dstress.nocompile.delete_02;
+
+import std.gc;
+
+int status;
+
+struct MyStruct{
+	int i;
+
+	delete(void* p){
+		assert(status==0);
+		status--;
+	}
+}
+
+void test(){
+	MyStruct t;
+	delete t;
+}
+
+int main(){
+	test();
+	std.gc.fullCollect();
+	std.gc.minimize();
+	assert(status==-1);
+	return 0;
+}
--- a/nocompile/interface_14.d	Tue May 10 23:53:52 2005 +0000
+++ b/nocompile/interface_14.d	Tue May 10 23:59:14 2005 +0000
@@ -10,4 +10,4 @@
 
 module dstress.nocompile.interface_14;
 
-interface
+interface
\ No newline at end of file
--- a/run/auto_01.d	Tue May 10 23:53:52 2005 +0000
+++ b/run/auto_01.d	Tue May 10 23:59:14 2005 +0000
@@ -23,6 +23,6 @@
 	try{
 		auto AutoClass ac = new AutoClass();
 	}catch{
+		return 0;
 	}
-	return 0;
 }
--- a/run/bug_cgcs_353_J.d	Tue May 10 23:53:52 2005 +0000
+++ b/run/bug_cgcs_353_J.d	Tue May 10 23:59:14 2005 +0000
@@ -20,7 +20,7 @@
 	a[]=1.0fi;
 	b[]=3.0fi;
 
-	float[] arr=concat();
+	ifloat[] arr=concat();
 
 	assert(arr.length==2);
 	assert(arr[0]==1.0fi);
--- a/run/bug_cod2_4211_J.d	Tue May 10 23:53:52 2005 +0000
+++ b/run/bug_cod2_4211_J.d	Tue May 10 23:59:14 2005 +0000
@@ -21,7 +21,7 @@
 	a[]=1.0fi;
 	b[]=3.0fi;
 
-	float[] arr=concat();
+	ifloat[] arr=concat();
 
 	assert(arr.length==2);
 	assert(arr[0]==1.0fi);
--- a/run/bug_constfold_575_A.d	Tue May 10 23:53:52 2005 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,16 +0,0 @@
-// $HeadURL$
-// $Date$
-// $Author$
-
-// @author@	David L. Davis <SpottedTiger@yahoo.com>
-// @date@	2005-04-24
-// @uri@	news:d4deen$1j8c$1@digitaldaemon.com
-
-module dstress.run.bug_constfold_575_A;
-
-int main(){
-	if (cfloat.min > cfloat.max){
-		assert(0);
-	}
-	return 0;
-}
--- a/run/bug_constfold_575_B.d	Tue May 10 23:53:52 2005 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,16 +0,0 @@
-// $HeadURL$
-// $Date$
-// $Author$
-
-// @author@	David L. Davis <SpottedTiger@yahoo.com>
-// @date@	2005-04-24
-// @uri@	news:d4deen$1j8c$1@digitaldaemon.com
-
-module dstress.run.bug_constfold_575_B;
-
-int main(){
-	if (cdouble.min > cdouble.max){
-		assert(0);
-	}
-	return 0;
-}
--- a/run/bug_constfold_575_C.d	Tue May 10 23:53:52 2005 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,16 +0,0 @@
-// $HeadURL$
-// $Date$
-// $Author$
-
-// @author@	David L. Davis <SpottedTiger@yahoo.com>
-// @date@	2005-04-24
-// @uri@	news:d4deen$1j8c$1@digitaldaemon.com
-
-module dstress.run.bug_constfold_575_C;
-
-int main(){
-	if (creal.min > creal.max){
-		assert(0);
-	}
-	return 0;
-}
--- a/run/bug_constfold_575_J.d	Tue May 10 23:53:52 2005 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,18 +0,0 @@
-// $HeadURL$
-// $Date$
-// $Author$
-
-// @author@	David L. Davis <SpottedTiger@yahoo.com>
-// @date@	2005-04-24
-// @uri@	news:d4deen$1j8c$1@digitaldaemon.com
-
-module dstress.run.bug_constfold_575_J;
-
-int main(){
-	cfloat a=cfloat.min;
-	cfloat b=cfloat.max;
-	if (a > b){
-		assert(0);
-	}
-	return 0;
-}
--- a/run/bug_constfold_575_O.d	Tue May 10 23:53:52 2005 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,18 +0,0 @@
-// $HeadURL$
-// $Date$
-// $Author$
-
-// @author@	David L. Davis <SpottedTiger@yahoo.com>
-// @date@	2005-04-24
-// @uri@	news:d4deen$1j8c$1@digitaldaemon.com
-
-module dstress.run.bug_constfold_575_O;
-
-int main(){
-	cdouble a=cdouble.min;
-	cdouble b=cdouble.max;
-	if (a > b){
-		assert(0);
-	}
-	return 0;
-}
--- a/run/bug_constfold_575_R.d	Tue May 10 23:53:52 2005 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,18 +0,0 @@
-// $HeadURL$
-// $Date$
-// $Author$
-
-// @author@	David L. Davis <SpottedTiger@yahoo.com>
-// @date@	2005-04-24
-// @uri@	news:d4deen$1j8c$1@digitaldaemon.com
-
-module dstress.run.bug_constfold_575_R;
-
-int main(){
-	creal a=creal.min;
-	creal b=creal.max;
-	if (a > b){
-		assert(0);
-	}
-	return 0;
-}
--- a/run/constructor_08.d	Tue May 10 23:53:52 2005 +0000
+++ b/run/constructor_08.d	Tue May 10 23:59:14 2005 +0000
@@ -15,7 +15,7 @@
 
 class B : A {
 	int foo;
-	this {}
+	this() {}
 }
 
 class C : B {
--- a/run/delete_02.d	Tue May 10 23:53:52 2005 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,33 +0,0 @@
-// $HeadURL$
-// $Date$
-// $Author$
-
-// @WARNING@ direct usage of Phobos's GC
-
-module dstress.run.delete_02;
-
-import std.gc;
-
-int status;
-
-struct MyStruct{
-	int i;
-
-	delete(void* p){
-		assert(status==0);
-		status--;
-	}
-}
-
-void test(){
-	MyStruct t;
-	delete t;
-}
-
-int main(){
-	test();
-	std.gc.fullCollect();
-	std.gc.minimize();
-	assert(status==-1);
-	return 0;
-}
--- a/run/html_line_ending_mac.html	Tue May 10 23:53:52 2005 +0000
+++ b/run/html_line_ending_mac.html	Tue May 10 23:59:14 2005 +0000
@@ -1,1 +1,1 @@
-<html>
	<head><title>dstress: html_line_ending_mac</title></head>
	<body><pre><CODE>
int main(){
	try{
		assert(0);
	}catch(Exception e){
		checkLineNumber(e);
		return 0;

	assert(-1);
	return 1;
}

/*
 * @WARNING@ this code depends on the phobos implementation.
 * char[]s returned by wrong assertions have to look like:
 *	 "blah blah (linenumber) blah blah"
 */
void checkLineNumber(Object o){
	char[] string=o.toString();

	int start;
	for(start=0; start&lt;string.length; start++){if(string[start]=='('){break;}}

	int end;
	for(end=string.length-1; end&gt;start; end--){if(string[end]==')'){break;}}

	assert(end-start==2);
	assert(string[start+1]=='6');
}
	</CODE></pre></body>
</html>
\ No newline at end of file
+<html>
	<head><title>dstress: html_line_ending_mac</title></head>
	<body><pre><CODE>
int main(){
	try{
		assert(0);
	}catch(Exception e){
		checkLineNumber(e);
		return 0;
	}
	assert(-1);
	return 1;
}

/*
 * @WARNING@ this code depends on the phobos implementation.
 * char[]s returned by wrong assertions have to look like:
 *	 "blah blah (linenumber) blah blah"
 */
void checkLineNumber(Object o){
	char[] string=o.toString();

	int start;
	for(start=0; start&lt;string.length; start++){if(string[start]=='('){break;}}

	int end;
	for(end=string.length-1; end&gt;start; end--){if(string[end]==')'){break;}}

	assert(end-start==2);
	assert(string[start+1]=='6');
}
	</CODE></pre></body>
</html>
\ No newline at end of file
--- a/run/in_out_body_03.d	Tue May 10 23:53:52 2005 +0000
+++ b/run/in_out_body_03.d	Tue May 10 23:59:14 2005 +0000
@@ -24,7 +24,7 @@
 		assert(result.i==1);
 		out_checked=true;
 	}body{
-		MyClass s;
+		MyClass s=new MyClass;
 		s.i = 1;
 		return s;
 	}