Mercurial > projects > dstress
annotate run/constructor_02.d @ 1597:8b9d4d2f925a
Fix typos in complex tests. See D bug 614.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Tue, 09 Sep 2008 16:53:58 +0200 |
parents | 6e4063f99377 |
children |
rev | line source |
---|---|
140 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
202 | 5 // @author@ Bastiaan Veelo <Bastiaan.N.Veelo@ntnu.no> |
2 | 6 // @date@ 2004-09-21 |
140 | 7 // @uri@ news:cip39j$v4s$1@digitaldaemon.com |
1487 | 8 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=1890 |
70
5f98d4a33d49
1) review of all test cases with unexpected results (except encoding and html/xml)
thomask
parents:
2
diff
changeset
|
9 |
5f98d4a33d49
1) review of all test cases with unexpected results (except encoding and html/xml)
thomask
parents:
2
diff
changeset
|
10 module dstress.run.constructor_02; |
2 | 11 |
12 int status; | |
13 | |
14 template ctor(){ | |
15 this(){ | |
16 this(2); | |
17 } | |
18 this(int i){ | |
19 status+=i; | |
20 } | |
21 } | |
22 | |
23 class MyClass{ | |
24 mixin ctor; | |
25 } | |
26 | |
27 int main(){ | |
28 assert(status==0); | |
29 MyClass object = new MyClass(); | |
30 assert(status==2); | |
85
659bb018c489
1) changed "?DSTRESS_FLAGS?" to "__DSTRESS_DFLAGS__" in order to cope with botched shells
thomask
parents:
70
diff
changeset
|
31 object = new MyClass(3); |
2 | 32 assert(status==5); |
33 return 0; | |
34 } |