Mercurial > projects > dstress
annotate nocompile/invariant_08.d @ 374:f87ba6507260
added missing meta-data
author | thomask |
---|---|
date | Thu, 31 Mar 2005 09:01:33 +0000 |
parents | 96cadd0da1ae |
children | ec5e144583ea |
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 { | |
13 invariant{ | |
14 assert(0); | |
15 } | |
16 return 0; | |
17 } | |
18 | |
19 int main(){ | |
20 return test(); | |
21 } |