Mercurial > projects > dstress
annotate run/init_04.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 | 9e0847cf535a |
children |
rev | line source |
---|---|
433
b310cc8b0391
check that init doesn't change the value of the queried var
thomask
parents:
diff
changeset
|
1 // $HeadURL$ |
b310cc8b0391
check that init doesn't change the value of the queried var
thomask
parents:
diff
changeset
|
2 // $Date$ |
b310cc8b0391
check that init doesn't change the value of the queried var
thomask
parents:
diff
changeset
|
3 // $Author$ |
b310cc8b0391
check that init doesn't change the value of the queried var
thomask
parents:
diff
changeset
|
4 |
b310cc8b0391
check that init doesn't change the value of the queried var
thomask
parents:
diff
changeset
|
5 module dstress.run.init_04; |
b310cc8b0391
check that init doesn't change the value of the queried var
thomask
parents:
diff
changeset
|
6 |
b310cc8b0391
check that init doesn't change the value of the queried var
thomask
parents:
diff
changeset
|
7 int main(){ |
b310cc8b0391
check that init doesn't change the value of the queried var
thomask
parents:
diff
changeset
|
8 int i=2; |
528 | 9 assert(int.init!=i.init); |
433
b310cc8b0391
check that init doesn't change the value of the queried var
thomask
parents:
diff
changeset
|
10 assert(i==2); |
b310cc8b0391
check that init doesn't change the value of the queried var
thomask
parents:
diff
changeset
|
11 return 0; |
b310cc8b0391
check that init doesn't change the value of the queried var
thomask
parents:
diff
changeset
|
12 } |