Mercurial > projects > dstress
annotate run/invariant_24.d @ 271:e9ef8eec28b1
invariant and ctor
Thomas Kuehne <thomas-dloop@kuehne.THISISSPAM.cn>
2005-02-06
news:vlbhd2-1n2.ln1@lnews.kuehne.cn
author | thomask |
---|---|
date | Sun, 06 Feb 2005 11:29:02 +0000 |
parents | |
children | 1e6afb94ce6d |
rev | line source |
---|---|
271 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Thomas Kuehne <thomas-dloop@kuehne.THISISSPAM.cn> | |
6 // @date@ 2005-02-06 | |
7 // @uri@ news:vlbhd2-1n2.ln1@lnews.kuehne.cn | |
8 | |
9 module dstress.run.invariant_24; | |
10 | |
11 class MyClass{ | |
12 | |
13 this(){ | |
14 } | |
15 | |
16 invariant{ | |
17 assert(0); | |
18 } | |
19 } | |
20 | |
21 int main(){ | |
22 try{ | |
23 MyClass c = new MyClass(); | |
24 }catch{ | |
25 return 0; | |
26 } | |
27 assert(0); | |
28 } |