Mercurial > projects > dstress
annotate nocompile/invariant_07.d @ 1586:a74f0139fc3d
Fix tests using typeof on types.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Thu, 21 Aug 2008 15:42:21 +0200 |
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 } |