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