Mercurial > projects > dstress
changeset 847:8089260fa44d
Wang Zhen <nehzgnaw@gmail.com>
2006-02-17
news:dt4a71$2hva$1@digitaldaemon.com
author | thomask |
---|---|
date | Fri, 17 Feb 2006 13:02:26 +0000 |
parents | 663d4ca7cf03 |
children | 2e38a498d473 |
files | nocompile/t/template_30_A.d nocompile/t/template_30_B.d nocompile/t/template_30_C.d nocompile/t/template_30_D.d nocompile/t/template_30_E.d |
diffstat | 5 files changed, 108 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/t/template_30_A.d Fri Feb 17 13:02:26 2006 +0000 @@ -0,0 +1,19 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Wang Zhen <nehzgnaw@gmail.com> +// @date@ 2006-02-17 +// @uri@ news:dt4a71$2hva$1@digitaldaemon.com + +// __DSTRESS_ELINE__ 17 + +module dstress.nocompile.t.template_30_A; + +template t(int t){ +} + +int main(){ + return t!(main()); +} +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/t/template_30_B.d Fri Feb 17 13:02:26 2006 +0000 @@ -0,0 +1,19 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Wang Zhen <nehzgnaw@gmail.com> +// @date@ 2006-02-17 +// @uri@ news:dt4a71$2hva$1@digitaldaemon.com + +// __DSTRESS_ELINE__ 17 + +module dstress.nocompile.t.template_30_B; + +template t(int z){ +} + +int main(){ + return t!(main()); +} +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/t/template_30_C.d Fri Feb 17 13:02:26 2006 +0000 @@ -0,0 +1,20 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Wang Zhen <nehzgnaw@gmail.com> +// @date@ 2006-02-17 +// @uri@ news:dt4a71$2hva$1@digitaldaemon.com + +// __DSTRESS_ELINE__ 18 + +module dstress.nocompile.t.template_30_C; + +template t(int z){ + const int t = 2; +} + +int main(){ + return t!(main()); +} +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/t/template_30_D.d Fri Feb 17 13:02:26 2006 +0000 @@ -0,0 +1,23 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Wang Zhen <nehzgnaw@gmail.com> +// @date@ 2006-02-17 +// @uri@ news:dt4a71$2hva$1@digitaldaemon.com + +module dstress.nocompile.t.template_30_D; + +template t(int z){ + const int t = 2; +} + +int foo(){ + return t!(bar()); +} + +int bar(){ + return t!(foo()); +} + +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/t/template_30_E.d Fri Feb 17 13:02:26 2006 +0000 @@ -0,0 +1,27 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Wang Zhen <nehzgnaw@gmail.com> +// @date@ 2006-02-17 +// @uri@ news:dt4a71$2hva$1@digitaldaemon.com + +module dstress.nocompile.t.template_30_E; + +template t(int z){ + const int t = 2; +} + +int foo(){ + return t!(dummy()); +} + +int dummy(){ + return t!(bar()); +} + +int bar(){ + return t!(foo()); +} + +