Mercurial > projects > dstress
changeset 1142:1a8e36e7f765
[Issue 354] New: Internal error: e2ir.c 772 with bad template use
Vathix <chris@dprogramming.com>
2006-09-17
news:bug-354-3@http.d.puremagic.com/issues/
author | thomask |
---|---|
date | Wed, 20 Sep 2006 19:10:56 +0000 |
parents | e00ecb270290 |
children | 868813e44edf |
files | compile/b/bug_e2ir_772_G.d compile/b/bug_e2ir_772_H.d compile/b/bug_e2ir_772_I.d compile/b/bug_e2ir_772_J.d run/b/bug_e2ir_772_A.d run/b/bug_e2ir_772_B.d run/b/bug_e2ir_772_C.d run/b/bug_e2ir_772_D.d run/b/bug_e2ir_772_E.d run/b/bug_e2ir_772_F.d |
diffstat | 10 files changed, 214 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/b/bug_e2ir_772_G.d Wed Sep 20 19:10:56 2006 +0000 @@ -0,0 +1,16 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Vathix <chris@dprogramming.com> +// @date@ 2006-09-17 +// @uri@ news:bug-354-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 354] New: Internal error: e2ir.c 772 with bad template use + +module dstress.compile.b.bug_e2ir_772_G; + +template T(){ + const int T = 3; +} + +static assert(T!() == 3);
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/b/bug_e2ir_772_H.d Wed Sep 20 19:10:56 2006 +0000 @@ -0,0 +1,16 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Vathix <chris@dprogramming.com> +// @date@ 2006-09-17 +// @uri@ news:bug-354-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 354] New: Internal error: e2ir.c 772 with bad template use + +module dstress.compile.b.bug_e2ir_772_H; + +template T(){ + const int T = 3; +} + +static assert(T == 3);
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/b/bug_e2ir_772_I.d Wed Sep 20 19:10:56 2006 +0000 @@ -0,0 +1,20 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Vathix <chris@dprogramming.com> +// @date@ 2006-09-17 +// @uri@ news:bug-354-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 354] New: Internal error: e2ir.c 772 with bad template use + +module dstress.compile.b.bug_e2ir_772_I; + +template A(){ + const int A = 3; +} + +template B(int x){ + const int B = x; +} + +static assert(B!(A) == 3);
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/b/bug_e2ir_772_J.d Wed Sep 20 19:10:56 2006 +0000 @@ -0,0 +1,20 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Vathix <chris@dprogramming.com> +// @date@ 2006-09-17 +// @uri@ news:bug-354-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 354] New: Internal error: e2ir.c 772 with bad template use + +module dstress.compile.b.bug_e2ir_772_J; + +template A(){ + const int A = 3; +} + +template B(int x){ + const int B = x; +} + +static assert(B!(A!()) == 3);
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/b/bug_e2ir_772_A.d Wed Sep 20 19:10:56 2006 +0000 @@ -0,0 +1,22 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Vathix <chris@dprogramming.com> +// @date@ 2006-09-17 +// @uri@ news:bug-354-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 354] New: Internal error: e2ir.c 772 with bad template use + +module dstress.run.b.bug_e2ir_772_A; + +template T(){ + const int T = 3; +} + +int main(){ + if(T!() != 3){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/b/bug_e2ir_772_B.d Wed Sep 20 19:10:56 2006 +0000 @@ -0,0 +1,22 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Vathix <chris@dprogramming.com> +// @date@ 2006-09-17 +// @uri@ news:bug-354-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 354] New: Internal error: e2ir.c 772 with bad template use + +module dstress.run.b.bug_e2ir_772_B; + +template T(){ + const int T = 3; +} + +int main(){ + if(T != 3){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/b/bug_e2ir_772_C.d Wed Sep 20 19:10:56 2006 +0000 @@ -0,0 +1,26 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Vathix <chris@dprogramming.com> +// @date@ 2006-09-17 +// @uri@ news:bug-354-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 354] New: Internal error: e2ir.c 772 with bad template use + +module dstress.run.b.bug_e2ir_772_C; + +template T(){ + const int T = 3; +} + +void check(int x){ + if(x != 3){ + assert(0); + } +} + +int main(){ + check(T!()); + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/b/bug_e2ir_772_D.d Wed Sep 20 19:10:56 2006 +0000 @@ -0,0 +1,26 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Vathix <chris@dprogramming.com> +// @date@ 2006-09-17 +// @uri@ news:bug-354-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 354] New: Internal error: e2ir.c 772 with bad template use + +module dstress.run.b.bug_e2ir_772_D; + +template T(){ + const int T = 3; +} + +void check(int x){ + if(x != 3){ + assert(0); + } +} + +int main(){ + check(T); + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/b/bug_e2ir_772_E.d Wed Sep 20 19:10:56 2006 +0000 @@ -0,0 +1,23 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Vathix <chris@dprogramming.com> +// @date@ 2006-09-17 +// @uri@ news:bug-354-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 354] New: Internal error: e2ir.c 772 with bad template use + +module dstress.run.b.bug_e2ir_772_E; + +template T(){ + const int T = 3; +} + +void check(...){ +} + +int main(){ + check(T); + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/b/bug_e2ir_772_F.d Wed Sep 20 19:10:56 2006 +0000 @@ -0,0 +1,23 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Vathix <chris@dprogramming.com> +// @date@ 2006-09-17 +// @uri@ news:bug-354-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 354] New: Internal error: e2ir.c 772 with bad template use + +module dstress.run.b.bug_e2ir_772_F; + +template T(){ + const int T = 3; +} + +void check(...){ +} + +int main(){ + check(T!()); + + return 0; +}