Mercurial > projects > dstress
changeset 1074:606a9d4edc0e
<h3r3tic@mat.uni.torun.pl>
2006-06-21
news:bug-215-3@http.d.puremagic.com/issues/
author | thomask |
---|---|
date | Fri, 07 Jul 2006 16:54:25 +0000 |
parents | 6c7318abb97c |
children | 069266d1a5f8 |
files | run/t/template_38_A.d run/t/template_38_B.d run/t/template_38_C.d run/t/template_38_D.d run/t/template_39_A.d run/t/template_39_B.d run/t/template_39_C.d run/t/template_39_D.d run/t/template_39_E.d |
diffstat | 9 files changed, 287 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/template_38_A.d Fri Jul 07 16:54:25 2006 +0000 @@ -0,0 +1,31 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ <h3r3tic@mat.uni.torun.pl> +// @date@ 2006-06-21 +// @uri@ news:bug-215-3@http.d.puremagic.com/issues/ + +module dstress.run.t.template_38_A; + +template T() { + template foo() { + bar b; + } + + int x = 1; +} + + +struct S { + mixin T!(); +} + +int main(){ + S s; + if(s.x != 1){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/template_38_B.d Fri Jul 07 16:54:25 2006 +0000 @@ -0,0 +1,31 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ <h3r3tic@mat.uni.torun.pl> +// @date@ 2006-06-21 +// @uri@ news:bug-215-3@http.d.puremagic.com/issues/ + +module dstress.run.t.template_38_B; + +template T() { + template foo(int i) { + bar b; + } + + int x = 1; +} + + +struct S { + mixin T!(); +} + +int main(){ + S s; + if(s.x != 1){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/template_38_C.d Fri Jul 07 16:54:25 2006 +0000 @@ -0,0 +1,31 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ <h3r3tic@mat.uni.torun.pl> +// @date@ 2006-06-21 +// @uri@ news:bug-215-3@http.d.puremagic.com/issues/ + +module dstress.run.t.template_38_C; + +template T() { + template foo() { + bar b; + } + + int x = 1; +} + + +class C{ + mixin T!(); +} + +int main(){ + C c = new C(); + if(c.x != 1){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/template_38_D.d Fri Jul 07 16:54:25 2006 +0000 @@ -0,0 +1,31 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ <h3r3tic@mat.uni.torun.pl> +// @date@ 2006-06-21 +// @uri@ news:bug-215-3@http.d.puremagic.com/issues/ + +module dstress.run.t.template_38_D; + +template T() { + template foo(int i) { + bar b; + } + + int x = 1; +} + + +class C{ + mixin T!(); +} + +int main(){ + C c = new C(); + if(c.x != 1){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/template_39_A.d Fri Jul 07 16:54:25 2006 +0000 @@ -0,0 +1,34 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ <h3r3tic@mat.uni.torun.pl> +// @date@ 2006-06-21 +// @uri@ news:bug-215-3@http.d.puremagic.com/issues/ + +module dstress.run.t.template_39_A; + +template T() { + template foo(int i = 0) { + } + + struct S{ + int x = 1; + } + + S s; +} + +struct Bar { + mixin T!(); +} + +int main(){ + Bar b; + + if(b.s.x != 1){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/template_39_B.d Fri Jul 07 16:54:25 2006 +0000 @@ -0,0 +1,34 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ <h3r3tic@mat.uni.torun.pl> +// @date@ 2006-06-21 +// @uri@ news:bug-215-3@http.d.puremagic.com/issues/ + +module dstress.run.t.template_39_B; + +template T() { + template foo(int i) { + } + + struct S{ + int x = 1; + } + + S s; +} + +struct Bar { + mixin T!(); +} + +int main(){ + Bar b; + + if(b.s.x != 1){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/template_39_C.d Fri Jul 07 16:54:25 2006 +0000 @@ -0,0 +1,31 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ <h3r3tic@mat.uni.torun.pl> +// @date@ 2006-06-21 +// @uri@ news:bug-215-3@http.d.puremagic.com/issues/ + +module dstress.run.t.template_39_C; + +template T() { + struct S{ + int x = 1; + } + + S s; +} + +struct Bar { + mixin T!(); +} + +int main(){ + Bar b; + + if(b.s.x != 1){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/template_39_D.d Fri Jul 07 16:54:25 2006 +0000 @@ -0,0 +1,30 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ <h3r3tic@mat.uni.torun.pl> +// @date@ 2006-06-21 +// @uri@ news:bug-215-3@http.d.puremagic.com/issues/ + +module dstress.run.t.template_39_D; + +template T() { + template foo(int i = 0) { + } + + struct S{ + int x = 1; + } + + S s; +} + +mixin T!(); + +int main(){ + if(s.x != 1){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/template_39_E.d Fri Jul 07 16:54:25 2006 +0000 @@ -0,0 +1,34 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ <h3r3tic@mat.uni.torun.pl> +// @date@ 2006-06-21 +// @uri@ news:bug-215-3@http.d.puremagic.com/issues/ + +module dstress.run.t.template_39_E; + +template T() { + template foo(int i = 0) { + } + + struct S{ + int x = 1; + } + + S s; +} + +class C{ + mixin T!(); +} + +int main(){ + C c = new C(); + + if(c.s.x != 1){ + assert(0); + } + + return 0; +}