Mercurial > projects > dstress
annotate run/static_04.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.static_04; | |
0 | 6 |
7 struct MyStruct{ | |
8 static int check; | |
9 } | |
10 | |
11 int main(){ | |
12 MyStruct s; | |
13 | |
14 s.check++; | |
15 assert( s.check == 1 ); | |
16 assert( MyStruct.check == 1 ); | |
17 | |
18 MyStruct.check++; | |
19 assert( s.check == 2 ); | |
20 assert( MyStruct.check == 2 ); | |
21 | |
22 return 0; | |
23 } |