changeset 311:35a1df98caf1

updated abstract tests to dmd-118
author thomask
date Wed, 16 Mar 2005 11:09:23 +0000
parents 49b0654b9881
children 557e7af55dfc
files nocompile/abstract_06.d nocompile/abstract_08.d nocompile/abstract_09.d nocompile/abstract_11.d nocompile/abstract_12.d run/abstract_07.d run/abstract_10.d todo.txt
diffstat 8 files changed, 123 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/abstract_06.d	Wed Mar 16 11:09:23 2005 +0000
@@ -0,0 +1,18 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Stewart Gordon
+// @date@	2004-09-24
+// @uri@	news:cj0qf6$2u2v$1@digitaldaemon.com
+// @url@	nntp://news.digitalmars.com/digitalmars.D.bugs/1940
+
+module dstress.nocompile.abstract_06;
+
+abstract class A{
+}
+
+int main(){
+	A a = new A();
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/abstract_08.d	Wed Mar 16 11:09:23 2005 +0000
@@ -0,0 +1,20 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Stewart Gordon
+// @date@	2004-09-24
+// @uri@	news:cj0qf6$2u2v$1@digitaldaemon.com
+// @url@	nntp://news.digitalmars.com/digitalmars.D.bugs/1940
+
+module dstress.nocompile.abstract_08;
+
+class A{
+	abstract void test(){
+	}
+}
+
+int main(){
+	A a = new A();
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/abstract_09.d	Wed Mar 16 11:09:23 2005 +0000
@@ -0,0 +1,14 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Thomas Kuehne <thomas-dloop@kuehne.thisisspam.cn
+// @date@	2005-03-16
+// @uri@	news:miglg2-ph5.ln1@lnews.kuehne.cn
+// @url@	nntp://news.digitalmars.com/digitalmars.D.bugs/3196
+
+module dstress.nocompile.abstract_09;
+
+class A{
+	abstract int a;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/abstract_11.d	Wed Mar 16 11:09:23 2005 +0000
@@ -0,0 +1,12 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Thomas Kuehne <thomas-dloop@kuehne.thisisspam.cn
+// @date@	2005-03-16
+// @uri@	news:miglg2-ph5.ln1@lnews.kuehne.cn
+// @url@	nntp://news.digitalmars.com/digitalmars.D.bugs/3196
+
+module dstress.nocompile.abstract_11;
+
+abstract int a;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/abstract_12.d	Wed Mar 16 11:09:23 2005 +0000
@@ -0,0 +1,14 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Thomas Kuehne <thomas-dloop@kuehne.thisisspam.cn
+// @date@	2005-03-16
+// @uri@	news:miglg2-ph5.ln1@lnews.kuehne.cn
+// @url@	nntp://news.digitalmars.com/digitalmars.D.bugs/3196
+
+module dstress.nocompile.abstract_12;
+
+abstract struct MyStruct{
+	int a;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/abstract_07.d	Wed Mar 16 11:09:23 2005 +0000
@@ -0,0 +1,25 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Stewart Gordon
+// @date@	2004-09-24
+// @uri@	news:cj0qf6$2u2v$1@digitaldaemon.com
+// @url@	nntp://news.digitalmars.com/digitalmars.D.bugs/1940
+
+module dstress.run.abstract_07;
+
+abstract class A{
+	int test(){
+		return 3;
+	}
+}
+
+class B : A{
+}
+
+int main(){
+	A a = new B();
+	assert(a.test()==3);
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/abstract_10.d	Wed Mar 16 11:09:23 2005 +0000
@@ -0,0 +1,20 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Stewart Gordon
+// @date@	2004-09-24
+// @uri@	news:cj0qf6$2u2v$1@digitaldaemon.com
+// @url@	nntp://news.digitalmars.com/digitalmars.D.bugs/1940
+
+module dstress.run.abstract_10;
+
+class A{
+	abstract class B{
+	}
+}
+
+int main(){
+	A a = new A();
+	return 0;
+}
--- a/todo.txt	Wed Mar 16 10:43:45 2005 +0000
+++ b/todo.txt	Wed Mar 16 11:09:23 2005 +0000
@@ -14,7 +14,6 @@
 
 Test cases:
 * keyword: asm
-* keyword: abstract (http://www.digitalmars.com/drn-bin/wwwnews?digitalmars.D.bugs/1940)
 * keyword: break (mutexes)
 * keyword: in out body
 * keyword: cent