Mercurial > projects > dstress
annotate nocompile/invariant_07.d @ 1619:bebc7472a832
Fix #7.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 07 Nov 2009 18:55:30 +0100 |
parents | ec5e144583ea |
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__ 15 |
8 | |
59 | 9 module dstress.nocompile.invariant_07; |
10 | |
11 int test() | |
12 body{ | |
13 return 0; | |
14 } | |
1559 | 15 invariant(){ |
59 | 16 assert(0); |
17 } | |
18 | |
19 int main(){ | |
20 return test(); | |
21 } |