Mercurial > projects > dstress
changeset 1006:9e1a036ad1c0
Assertion failure: '0' on line 610 in file 'template.c'
<lio@lunesu.com>
2006-05-17
news:bug-142-3@http.d.puremagic.com/bugzilla/
author | thomask |
---|---|
date | Fri, 19 May 2006 16:39:28 +0000 |
parents | 65461ac4aa9a |
children | b43bba5669d1 |
files | nocompile/b/bug_template_610_A.d nocompile/b/bug_template_610_B.d nocompile/b/bug_template_610_D.d nocompile/b/bug_template_610_E.d run/b/bug_template_610_C.d |
diffstat | 5 files changed, 118 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/b/bug_template_610_A.d Fri May 19 16:39:28 2006 +0000 @@ -0,0 +1,22 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ <lio@lunesu.com> +// @date@ 2006-05-17 +// @uri@ news:bug-142-3@http.d.puremagic.com/bugzilla/ + +// __DSTRESS_ELINE__ 14 + +module dstress.nocompile.b.bug_template_610_A; + +template A(alias T) { + void A(T){ + } +} + +void main(){ + int i; + A(i); +} +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/b/bug_template_610_B.d Fri May 19 16:39:28 2006 +0000 @@ -0,0 +1,23 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ <lio@lunesu.com> +// @date@ 2006-05-17 +// @uri@ news:bug-142-3@http.d.puremagic.com/bugzilla/ + +// __DSTRESS_ELINE__ 14 + +module dstress.nocompile.b.bug_template_610_B; + +template A(alias T) { + void A(T){ + T = 2; + } +} + +void main(){ + int i; + A(i); +} +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/b/bug_template_610_D.d Fri May 19 16:39:28 2006 +0000 @@ -0,0 +1,24 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ <lio@lunesu.com> +// @date@ 2006-05-17 +// @uri@ news:bug-142-3@http.d.puremagic.com/bugzilla/ + +// __DSTRESS_ELINE__ 14 + +module dstress.nocompile.b.bug_template_610_D; + +template A(alias T) { + void A(T){ + T = 2; + } +} + +int i; + +void main(){ + A(i); +} +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/b/bug_template_610_E.d Fri May 19 16:39:28 2006 +0000 @@ -0,0 +1,23 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ <lio@lunesu.com> +// @date@ 2006-05-17 +// @uri@ news:bug-142-3@http.d.puremagic.com/bugzilla/ + +// __DSTRESS_ELINE__ 14 + +module dstress.nocompile.b.bug_template_610_E; + +template A(alias T) { + void A(T){ + } +} + +int i; + +void main(){ + A(i); +} +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/b/bug_template_610_C.d Fri May 19 16:39:28 2006 +0000 @@ -0,0 +1,26 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ <lio@lunesu.com> +// @date@ 2006-05-17 +// @uri@ news:bug-142-3@http.d.puremagic.com/bugzilla/ + +module dstress.run.b.bug_template_610_C; + +template A(alias T) { + void A(){ + T = 2; + } +} + +int i; + +void main(){ + A!(i)(); + + if(i != 2){ + assert(0); + } +} +