Mercurial > projects > dstress
annotate nocompile/invariant_08.d @ 1559:ec5e144583ea
D1 -> D2 : 1/N
author | thomask |
---|---|
date | Sun, 19 Aug 2007 19:11:54 +0000 |
parents | f87ba6507260 |
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 } |