changeset 687:59db9e5e7781

Burton Radons <burton-radons@smocky.com> 2005-09-26 news:dh9jpe$1uv7$1@digitaldaemon.com
author thomask
date Mon, 26 Sep 2005 21:22:29 +0000
parents fee0a5e50d6e
children 00e1065a44b1
files run/t/template_class_10_A.d run/t/template_class_10_B.d run/t/template_class_10_C.d run/t/template_class_10_D.d run/t/template_class_10_E.d run/t/template_struct_03_A.d run/t/template_struct_03_B.d run/t/template_struct_03_C.d run/t/template_struct_03_D.d run/t/template_struct_03_E.d
diffstat 10 files changed, 306 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/t/template_class_10_A.d	Mon Sep 26 21:22:29 2005 +0000
@@ -0,0 +1,31 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Burton Radons <burton-radons@smocky.com>
+// @date@	2005-09-26
+// @uri@	news:dh9jpe$1uv7$1@digitaldaemon.com
+
+module dstress.run.t.template_class_10_A;
+
+class A (uint D){
+	B!(D - 1) b;
+	
+	this(){
+		b = new B!(D-1);
+	}
+}
+
+class B (uint D){
+	uint [D] data;
+	uint foo () {
+		return data [0];
+	}
+}
+
+int main(){
+	A!(4) a4 = new A!(4);
+	assert(a4.b.data.length==3);
+
+	return 0;
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/t/template_class_10_B.d	Mon Sep 26 21:22:29 2005 +0000
@@ -0,0 +1,31 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Burton Radons <burton-radons@smocky.com>
+// @date@	2005-09-26
+// @uri@	news:dh9jpe$1uv7$1@digitaldaemon.com
+
+module dstress.run.t.template_class_10_B;
+
+class A (uint D){
+	B!(D - 1) b;
+	
+	this(){
+		b = new B!(D-1);
+	}
+}
+
+class B (uint D){
+	uint [D] data;
+	uint foo () {
+		return data [0];
+	}
+}
+
+int main(){
+	B!(3) b2 = new B!(3);
+	assert(b2.data.length==3);
+
+	return 0;
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/t/template_class_10_C.d	Mon Sep 26 21:22:29 2005 +0000
@@ -0,0 +1,34 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Burton Radons <burton-radons@smocky.com>
+// @date@	2005-09-26
+// @uri@	news:dh9jpe$1uv7$1@digitaldaemon.com
+
+module dstress.run.t.template_class_10_C;
+
+class A (uint D){
+	B!(D - 1) b;
+	
+	this(){
+		b = new B!(D-1);
+	}
+}
+
+class B (uint D){
+	uint [D] data;
+	uint foo () {
+		return data [0];
+	}
+}
+
+int main(){
+	A!(4) a4 = new A!(4);
+	assert(a4.b.data.length==3);
+
+	B!(3) b2 = new B!(3);
+	assert(b2.data.length==3);
+
+	return 0;
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/t/template_class_10_D.d	Mon Sep 26 21:22:29 2005 +0000
@@ -0,0 +1,34 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Burton Radons <burton-radons@smocky.com>
+// @date@	2005-09-26
+// @uri@	news:dh9jpe$1uv7$1@digitaldaemon.com
+
+module dstress.run.t.template_class_10_D;
+
+class A (uint D){
+	B!(D - 1) b;
+	
+	this(){
+		b = new B!(D-1);
+	}
+}
+
+class B (uint D){
+	uint [D] data;
+	uint foo () {
+		return data [0];
+	}
+}
+
+int main(){
+	B!(3) b2 = new B!(3);
+	assert(b2.data.length==3);
+
+	A!(4) a4 = new A!(4);
+	assert(a4.b.data.length==3);
+
+	return 0;
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/t/template_class_10_E.d	Mon Sep 26 21:22:29 2005 +0000
@@ -0,0 +1,34 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Burton Radons <burton-radons@smocky.com>
+// @date@	2005-09-26
+// @uri@	news:dh9jpe$1uv7$1@digitaldaemon.com
+
+module dstress.run.t.template_class_10_E;
+
+class A (uint D){
+	B!(D - 1) b;
+	
+	this(){
+		b = new B!(D-1);
+	}
+}
+
+class B (uint D){
+	uint [D] data;
+	uint foo () {
+		return data [0];
+	}
+}
+
+int main(){
+	B!(2) b2 = new B!(2);
+	assert(b2.data.length==2);
+
+	A!(4) a4 = new A!(4);
+	assert(a4.b.data.length==3);
+
+	return 0;
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/t/template_struct_03_A.d	Mon Sep 26 21:22:29 2005 +0000
@@ -0,0 +1,29 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Burton Radons <burton-radons@smocky.com>
+// @date@	2005-09-26
+// @uri@	news:dh9jpe$1uv7$1@digitaldaemon.com
+
+module dstress.run.t.template_struct_03_A;
+
+struct A (uint D){
+	B!(D - 1) b;
+}
+
+struct B (uint D){
+	uint [D] data;
+	uint foo () {
+		return data [0];
+	}
+}
+
+int main(){
+	A!(4) a4;
+	assert(a4.b.data.length==3);
+	
+	B!(2) b2;
+	assert(b2.data.length==2);
+	return 0;
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/t/template_struct_03_B.d	Mon Sep 26 21:22:29 2005 +0000
@@ -0,0 +1,29 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Burton Radons <burton-radons@smocky.com>
+// @date@	2005-09-26
+// @uri@	news:dh9jpe$1uv7$1@digitaldaemon.com
+
+module dstress.run.t.template_struct_03_B;
+
+struct A (uint D){
+	B!(D - 1) b;
+}
+
+struct B (uint D){
+	uint [D] data;
+	uint foo () {
+		return data [0];
+	}
+}
+
+int main(){
+	A!(4) a4;
+	assert(a4.b.data.length==3);
+	
+	B!(3) b2;
+	assert(b2.data.length==3);
+	return 0;
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/t/template_struct_03_C.d	Mon Sep 26 21:22:29 2005 +0000
@@ -0,0 +1,30 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Burton Radons <burton-radons@smocky.com>
+// @date@	2005-09-26
+// @uri@	news:dh9jpe$1uv7$1@digitaldaemon.com
+
+module dstress.run.t.template_struct_03_C;
+
+struct A (uint D){
+	B!(D - 1) b;
+}
+
+struct B (uint D){
+	uint [D] data;
+	uint foo () {
+		return data [0];
+	}
+}
+
+int main(){
+	B!(3) b2;
+	assert(b2.data.length==3);
+
+	A!(4) a4;
+	assert(a4.b.data.length==3);
+	
+	return 0;
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/t/template_struct_03_D.d	Mon Sep 26 21:22:29 2005 +0000
@@ -0,0 +1,27 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Burton Radons <burton-radons@smocky.com>
+// @date@	2005-09-26
+// @uri@	news:dh9jpe$1uv7$1@digitaldaemon.com
+
+module dstress.run.t.template_struct_03_D;
+
+struct A (uint D){
+	B!(D - 1) b;
+}
+
+struct B (uint D){
+	uint [D] data;
+	uint foo () {
+		return data [0];
+	}
+}
+
+int main(){
+	B!(3) b2;
+	assert(b2.data.length==3);
+	
+	return 0;
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/t/template_struct_03_E.d	Mon Sep 26 21:22:29 2005 +0000
@@ -0,0 +1,27 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Burton Radons <burton-radons@smocky.com>
+// @date@	2005-09-26
+// @uri@	news:dh9jpe$1uv7$1@digitaldaemon.com
+
+module dstress.run.t.template_struct_03_E;
+
+struct A (uint D){
+	B!(D - 1) b;
+}
+
+struct B (uint D){
+	uint [D] data;
+	uint foo () {
+		return data [0];
+	}
+}
+
+int main(){
+	A!(4) a4;
+	assert(a4.b.data.length==3);
+
+	return 0;
+}
\ No newline at end of file