Mercurial > projects > dstress
annotate nocompile/invariant_05.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 | |
59 | 5 // invariant is only allowed in classes (dmd-0.104 documentation) |
6 | |
374 | 7 // __DSTRESS_ELINE__ 11 |
8 | |
59 | 9 module dstress.nocompile.invariant_05; |
10 | |
11 invariant{ | |
12 assert(0); | |
13 } | |
14 | |
15 int dummy; | |
16 | |
17 static this(){ | |
18 dummy=4; | |
19 } | |
20 | |
21 static ~this(){ | |
22 dummy++; | |
23 } |