Mercurial > projects > dstress
annotate run/struct_initialization_03.d @ 1630:d0efa3ae5522 default tip
run/mini/naked_asm5: New x86_64 ABI passes the arguments in reverse order.
author | David Nadlinger <code@klickverbot.at> |
---|---|
date | Sat, 23 Apr 2011 22:57:32 +0200 |
parents | f87ba6507260 |
children |
rev | line source |
---|---|
374 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 module dstress.run.struct_initialization_03; | |
6 | |
9 | 7 struct MyStruct{ |
8 int a; | |
9 int b; | |
10 int c = 7; | |
11 } | |
12 | |
13 int main(){ | |
14 static MyStruct s={c:2}; | |
15 assert(s.a==int.init); | |
16 assert(s.b==int.init); | |
17 assert(s.c==2); | |
18 return 0; | |
19 } |