Mercurial > projects > dstress
annotate nocompile/invariant_08.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 | ec5e144583ea |
children |
rev | line source |
---|---|
374 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // invariant is only allowed in class/union/struct (dmd-0.119 documentation) | |
6 | |
7 // __DSTRESS_ELINE__ 13 | |
59 | 8 |
9 module dstress.nocompile.invariant_08; | |
10 | |
11 int test() | |
12 { | |
1559 | 13 invariant(){ |
59 | 14 assert(0); |
15 } | |
16 return 0; | |
17 } | |
18 | |
19 int main(){ | |
20 return test(); | |
21 } |