Mercurial > projects > dstress
annotate nocompile/invariant_17.d @ 1559:ec5e144583ea
D1 -> D2 : 1/N
author | thomask |
---|---|
date | Sun, 19 Aug 2007 19:11:54 +0000 |
parents | 774e02c900da |
children |
rev | line source |
---|---|
140 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
202 | 5 // @author@ Thomas Kuehne <thomas-dloop@kuehne.thisisspam.cn> |
70
5f98d4a33d49
1) review of all test cases with unexpected results (except encoding and html/xml)
thomask
parents:
66
diff
changeset
|
6 // @date@ 2004-10-22 |
140 | 7 // @uri@ news:clbr09$uc6$1@digitaldaemon.com |
1485 | 8 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=2140 |
70
5f98d4a33d49
1) review of all test cases with unexpected results (except encoding and html/xml)
thomask
parents:
66
diff
changeset
|
9 |
66 | 10 // invariant may not call non-static public class member functions (stack overflow) |
11 | |
739 | 12 // __DSTRESS_TORTURE_BLOCK__ -release |
13 // __DSTRESS_ELINE__ 26 | |
374 | 14 |
66 | 15 module dstress.nocompile.invariant_17; |
16 | |
17 class MyClass{ | |
18 this(){ | |
19 } | |
20 | |
21 int test(){ | |
22 return 0; | |
23 } | |
24 | |
1559 | 25 invariant(){ |
66 | 26 assert(test()!=0); |
27 } | |
28 } | |
29 | |
30 int main(){ | |
31 MyClass c = new MyClass(); | |
32 return 0; | |
33 } |