comparison nocompile/s/struct_initialization_09_B.d @ 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
children daef239f37cf
comparison
equal deleted inserted replaced
1274:fa5b19cd8877 1275:a00c90d4303d
1 // $HeadURL$
2 // $Date$
3 // $Author$
4
5 // @author@ Tom <chievo3@gmail.com>
6 // @date@ 2006-11-09
7 // @uri@ news:bug-490-3@http.d.puremagic.com/issues/
8 // @desc@ [Issue 490] New: Static struct initializer without static attribute aborts dmd with assertion
9
10 // __DSTRESS_ELINE__ 19
11
12 module dstress.nocompile.s.struct_initialization_09_B;
13
14 struct S {
15 int a;
16 }
17
18 void foo(){
19 S s = {a:1};
20 }