Mercurial > projects > dstress
annotate nocompile/invariant_17.d @ 374:f87ba6507260
added missing meta-data
author | thomask |
---|---|
date | Thu, 31 Mar 2005 09:01:33 +0000 |
parents | 4cd33115f015 |
children | 0ea4c218a3ee |
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 |
8 // @url@ nntp://digitalmars.com/digitalmars.D.bugs/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 | |
374 | 12 // __DSTRESS_ELINE__ 25 |
13 | |
66 | 14 module dstress.nocompile.invariant_17; |
15 | |
16 class MyClass{ | |
17 this(){ | |
18 } | |
19 | |
20 int test(){ | |
21 return 0; | |
22 } | |
23 | |
24 invariant{ | |
25 assert(test()!=0); | |
26 } | |
27 } | |
28 | |
29 int main(){ | |
30 MyClass c = new MyClass(); | |
31 return 0; | |
32 } |