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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
140
a33ad7189d21 1) news:// -> news:
thomask
parents: 85
diff changeset
1 // $HeadURL$
a33ad7189d21 1) news:// -> news:
thomask
parents: 85
diff changeset
2 // $Date$
a33ad7189d21 1) news:// -> news:
thomask
parents: 85
diff changeset
3 // $Author$
a33ad7189d21 1) news:// -> news:
thomask
parents: 85
diff changeset
4
202
4cd33115f015 1) fixed @author@ typos
thomask
parents: 140
diff changeset
5 // @author@ Bastiaan Veelo <Bastiaan.N.Veelo@ntnu.no>
2
de27ca625bf7 extended abstract/alias and template tests
thomask
parents:
diff changeset
6 // @date@ 2004-09-21
140
a33ad7189d21 1) news:// -> news:
thomask
parents: 85
diff changeset
7 // @uri@ news:cip39j$v4s$1@digitaldaemon.com
1487
6e4063f99377 changed nntp: URLs to http: URLs
thomask
parents: 1383
diff changeset
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
de27ca625bf7 extended abstract/alias and template tests
thomask
parents:
diff changeset
11
de27ca625bf7 extended abstract/alias and template tests
thomask
parents:
diff changeset
12 int status;
de27ca625bf7 extended abstract/alias and template tests
thomask
parents:
diff changeset
13
de27ca625bf7 extended abstract/alias and template tests
thomask
parents:
diff changeset
14 template ctor(){
de27ca625bf7 extended abstract/alias and template tests
thomask
parents:
diff changeset
15 this(){
de27ca625bf7 extended abstract/alias and template tests
thomask
parents:
diff changeset
16 this(2);
de27ca625bf7 extended abstract/alias and template tests
thomask
parents:
diff changeset
17 }
de27ca625bf7 extended abstract/alias and template tests
thomask
parents:
diff changeset
18 this(int i){
de27ca625bf7 extended abstract/alias and template tests
thomask
parents:
diff changeset
19 status+=i;
de27ca625bf7 extended abstract/alias and template tests
thomask
parents:
diff changeset
20 }
de27ca625bf7 extended abstract/alias and template tests
thomask
parents:
diff changeset
21 }
de27ca625bf7 extended abstract/alias and template tests
thomask
parents:
diff changeset
22
de27ca625bf7 extended abstract/alias and template tests
thomask
parents:
diff changeset
23 class MyClass{
de27ca625bf7 extended abstract/alias and template tests
thomask
parents:
diff changeset
24 mixin ctor;
de27ca625bf7 extended abstract/alias and template tests
thomask
parents:
diff changeset
25 }
de27ca625bf7 extended abstract/alias and template tests
thomask
parents:
diff changeset
26
de27ca625bf7 extended abstract/alias and template tests
thomask
parents:
diff changeset
27 int main(){
de27ca625bf7 extended abstract/alias and template tests
thomask
parents:
diff changeset
28 assert(status==0);
de27ca625bf7 extended abstract/alias and template tests
thomask
parents:
diff changeset
29 MyClass object = new MyClass();
de27ca625bf7 extended abstract/alias and template tests
thomask
parents:
diff changeset
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
de27ca625bf7 extended abstract/alias and template tests
thomask
parents:
diff changeset
32 assert(status==5);
de27ca625bf7 extended abstract/alias and template tests
thomask
parents:
diff changeset
33 return 0;
de27ca625bf7 extended abstract/alias and template tests
thomask
parents:
diff changeset
34 }