Mercurial > projects > dstress
changeset 843:79b8a1e5c2d0
BCS <BCS_member@pathlink.com>
2006-02-16
news:dt2eo3$tea$1@digitaldaemon.com
author | thomask |
---|---|
date | Fri, 17 Feb 2006 10:13:19 +0000 |
parents | eaed9c03e1d6 |
children | e3c9f22bff58 |
files | nocompile/t/template_29_A.d nocompile/t/template_29_B.d nocompile/t/template_29_C.d nocompile/t/template_29_D.d |
diffstat | 4 files changed, 92 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/t/template_29_A.d Fri Feb 17 10:13:19 2006 +0000 @@ -0,0 +1,21 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ BCS <BCS_member@pathlink.com> +// @date@ 2006-02-16 +// @uri@ news:dt2eo3$tea$1@digitaldaemon.com +// @desc@ Internal error: e2ir.c 736 + +// __DSTRESS_ELINE__ 15 + +module dstress.nocompile.t.template_29_A; + +template foo(int i){ + const int bar = foo!(i).bar; +} + +int main(){ + return foo!(1).bar; +} +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/t/template_29_B.d Fri Feb 17 10:13:19 2006 +0000 @@ -0,0 +1,25 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ BCS <BCS_member@pathlink.com> +// @date@ 2006-02-16 +// @uri@ news:dt2eo3$tea$1@digitaldaemon.com +// @desc@ Internal error: e2ir.c 736 + +// __DSTRESS_ELINE__ 16 + +module dstress.nocompile.t.template_29_B; + +template foo(uint i){ + static if(i > 0){ + const uint bar = foo!(i-1).bar; + }else{ + const uint bar = 1; + } +} + +int main(){ + return foo!(uint.max).bar; +} +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/t/template_29_C.d Fri Feb 17 10:13:19 2006 +0000 @@ -0,0 +1,21 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ BCS <BCS_member@pathlink.com> +// @date@ 2006-02-16 +// @uri@ news:dt2eo3$tea$1@digitaldaemon.com +// @desc@ Internal error: e2ir.c 736 + +// __DSTRESS_ELINE__ 15 + +module dstress.nocompile.t.template_29_C; + +template foo(uint i){ + const uint foo = foo!(i); +} + +int main(){ + return foo!(uint.max); +} +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/t/template_29_D.d Fri Feb 17 10:13:19 2006 +0000 @@ -0,0 +1,25 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ BCS <BCS_member@pathlink.com> +// @date@ 2006-02-16 +// @uri@ news:dt2eo3$tea$1@digitaldaemon.com +// @desc@ Internal error: e2ir.c 736 + +// __DSTRESS_ELINE__ 16 + +module dstress.nocompile.t.template_29_D; + +template foo(uint i){ + static if(i > 0){ + const uint foo = foo!(i-1); + }else{ + const uint foo = 1; + } +} + +int main(){ + return foo!(uint.max); +} +