changeset 316:bebf25858c08

updated testcases to DMD version 0.118
author thomask
date Thu, 17 Mar 2005 15:00:16 +0000
parents 6cb8ecb39d27
children 188082b88d85
files nocompile/main_05.d nocompile/overload_14.d nocompile/overload_16.d nocompile/return_05.d norun/main_05.d run/overload_14.d run/overload_16.d
diffstat 7 files changed, 89 insertions(+), 98 deletions(-) [+]
line wrap: on
line diff
--- a/nocompile/main_05.d	Wed Mar 16 16:51:29 2005 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,3 +0,0 @@
-
-int main(){
-}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/overload_14.d	Thu Mar 17 15:00:16 2005 +0000
@@ -0,0 +1,43 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Nick Sabalausky <z@a.a>
+// @date@	2005-02-01
+// @uri@	news:ctpknf$21se$1@digitaldaemon.com
+// @url@	nntp://news.digitmars.com/digitalmars.D.bugs
+
+// name resolution happens before overload resolution
+
+module dstress.run.overload_14;
+
+int status;
+
+void check(int x){
+	status++;
+}
+
+class MyClass{
+	void test(){
+		assert(status==0);
+		check(0);
+		assert(status==1);
+		check();
+		assert(status==3);
+	}
+
+	void check(){
+		assert(status==1);
+		status+=2;
+	}
+}
+
+int main(){
+	MyClass c = new MyClass();
+	assert(status==0);
+	c.test();
+	assert(status==3);
+	check(0);
+	assert(status==4);
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/overload_16.d	Thu Mar 17 15:00:16 2005 +0000
@@ -0,0 +1,43 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Nick Sabalausky <z@a.a>
+// @date@	2005-02-01
+// @uri@	news:ctpknf$21se$1@digitaldaemon.com
+// @url@	nntp://news.digitmars.com/digitalmars.D.bugs
+
+// name resolution happens before overload resolution
+
+module dstress.run.overload_16;
+
+int status;
+
+void check(int x){
+	status++;
+}
+
+class MyClass{
+	void test(){
+		assert(status==0);
+		.check(0);
+		assert(status==1);
+		.check();
+		assert(status==3);
+	}
+
+	void check(){
+		assert(status==1);
+		status+=2;
+	}
+}
+
+int main(){
+	MyClass c = new MyClass();
+	assert(status==0);
+	c.test();
+	assert(status==3);
+	check(0);
+	assert(status==4);
+	return 0;
+}
--- a/nocompile/return_05.d	Wed Mar 16 16:51:29 2005 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
-// $HeadURL$
-// $Date$
-// $Author$
-
-// path without return 
-
-module dstress.nocompile.return_05;
-
-int main(char[][] args){
-	if(0){
-		return 0;
-	}
-}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/norun/main_05.d	Thu Mar 17 15:00:16 2005 +0000
@@ -0,0 +1,3 @@
+
+int main(){
+}
--- a/run/overload_14.d	Wed Mar 16 16:51:29 2005 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,41 +0,0 @@
-// $HeadURL$
-// $Date$
-// $Author$
-
-// @author@	Nick Sabalausky <z@a.a>
-// @date@	2005-02-01
-// @uri@	news:ctpknf$21se$1@digitaldaemon.com
-// @url@	nntp://news.digitmars.com/digitalmars.D.bugs
-
-module dstress.run.overload_14;
-
-int status;
-
-void check(int x){
-	status++;
-}
-
-class MyClass{
-	void test(){
-		assert(status==0);
-		check(0);
-		assert(status==1);
-		check();
-		assert(status==3);
-	}
-
-	void check(){
-		assert(status==1);
-		status+=2;
-	}
-}
-
-int main(){
-	MyClass c = new MyClass();
-	assert(status==0);
-	c.test();
-	assert(status==3);
-	check(0);
-	assert(status==4);
-	return 0;
-}
--- a/run/overload_16.d	Wed Mar 16 16:51:29 2005 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,41 +0,0 @@
-// $HeadURL$
-// $Date$
-// $Author$
-
-// @author@	Nick Sabalausky <z@a.a>
-// @date@	2005-02-01
-// @uri@	news:ctpknf$21se$1@digitaldaemon.com
-// @url@	nntp://news.digitmars.com/digitalmars.D.bugs
-
-module dstress.run.overload_16;
-
-int status;
-
-void check(int x){
-	status++;
-}
-
-class MyClass{
-	void test(){
-		assert(status==0);
-		.check(0);
-		assert(status==1);
-		.check();
-		assert(status==3);
-	}
-
-	void check(){
-		assert(status==1);
-		status+=2;
-	}
-}
-
-int main(){
-	MyClass c = new MyClass();
-	assert(status==0);
-	c.test();
-	assert(status==3);
-	check(0);
-	assert(status==4);
-	return 0;
-}