Mercurial > projects > dstress
changeset 1275:a00c90d4303d
[Issue 490] New: Static struct initializer without static attribute aborts dmd with assertion
Tom <chievo3@gmail.com>
2006-11-09
news:bug-490-3@http.d.puremagic.com/issues/
author | thomask |
---|---|
date | Sat, 23 Dec 2006 19:47:07 +0000 |
parents | fa5b19cd8877 |
children | 3054c226a571 |
files | nocompile/s/struct_initialization_09_A.d nocompile/s/struct_initialization_09_B.d |
diffstat | 2 files changed, 40 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/s/struct_initialization_09_A.d Sat Dec 23 19:47:07 2006 +0000 @@ -0,0 +1,20 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Tom <chievo3@gmail.com> +// @date@ 2006-11-09 +// @uri@ news:bug-490-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 490] New: Static struct initializer without static attribute aborts dmd with assertion + +// __DSTRESS_ELINE__ 19 + +module dstress.nocompile.s.struct_initialization_09_A; + +struct S { + int a; +} + +void foo(){ + S s = {1}; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/s/struct_initialization_09_B.d Sat Dec 23 19:47:07 2006 +0000 @@ -0,0 +1,20 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Tom <chievo3@gmail.com> +// @date@ 2006-11-09 +// @uri@ news:bug-490-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 490] New: Static struct initializer without static attribute aborts dmd with assertion + +// __DSTRESS_ELINE__ 19 + +module dstress.nocompile.s.struct_initialization_09_B; + +struct S { + int a; +} + +void foo(){ + S s = {a:1}; +}