Mercurial > projects > dstress
changeset 1073:6c7318abb97c
<oskar.linde@gmail.com>
2006-07-06
news:bug-242-3@http.d.puremagic.com/issues/
author | thomask |
---|---|
date | Fri, 07 Jul 2006 16:53:41 +0000 |
parents | 4ad1807b13a3 |
children | 606a9d4edc0e |
files | run/t/template_37_A.d run/t/template_37_B.d run/t/template_37_C.d run/t/template_37_D.d |
diffstat | 4 files changed, 100 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/template_37_A.d Fri Jul 07 16:53:41 2006 +0000 @@ -0,0 +1,25 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ <oskar.linde@gmail.com> +// @date@ 2006-07-06 +// @uri@ news:bug-242-3@http.d.puremagic.com/issues/ + +module dstress.run.t.template_37_A; + +template a(){ + template b(){ + int c = 1; + } +} + +int main(){ + int x = a!().b!().c; + + if(x != 1){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/template_37_B.d Fri Jul 07 16:53:41 2006 +0000 @@ -0,0 +1,25 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ <oskar.linde@gmail.com> +// @date@ 2006-07-06 +// @uri@ news:bug-242-3@http.d.puremagic.com/issues/ + +module dstress.run.t.template_37_B; + +template a(){ + template b(){ + int b = 1; + } +} + +int main(){ + int x = a!().b!(); + + if(x != 1){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/template_37_C.d Fri Jul 07 16:53:41 2006 +0000 @@ -0,0 +1,25 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ <oskar.linde@gmail.com> +// @date@ 2006-07-06 +// @uri@ news:bug-242-3@http.d.puremagic.com/issues/ + +module dstress.run.t.template_37_C; + +template a(){ + template a(){ + int c = 1; + } +} + +int main(){ + int x = a!()!().c; + + if(x != 1){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/template_37_D.d Fri Jul 07 16:53:41 2006 +0000 @@ -0,0 +1,25 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ <oskar.linde@gmail.com> +// @date@ 2006-07-06 +// @uri@ news:bug-242-3@http.d.puremagic.com/issues/ + +module dstress.run.t.template_37_D; + +template a(){ + template a(){ + int a = 1; + } +} + +int main(){ + int x = a!()!(); + + if(x != 1){ + assert(0); + } + + return 0; +}