Mercurial > projects > dstress
annotate compile/const_11.d @ 1619:bebc7472a832
Fix #7.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 07 Nov 2009 18:55:30 +0100 |
parents | 1d1f281a9b11 |
children |
rev | line source |
---|---|
153 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $URL$ | |
4 | |
1590
1d1f281a9b11
Move const_11 to compile. Addresses of globals are valid constants.
Christian Kamm <kamm incasoftware de>
parents:
338
diff
changeset
|
5 module dstress.compile.const_11; |
153 | 6 |
7 struct MyStruct{ | |
8 int i=2; | |
9 } | |
10 | |
11 const MyStruct s; | |
12 const MyStruct* sp = &s; | |
13 |