Mercurial > projects > dstress
annotate run/init_05.d @ 433:b310cc8b0391
check that init doesn't change the value of the queried var
author | thomask |
---|---|
date | Fri, 15 Apr 2005 09:01:17 +0000 |
parents | |
children | 9e0847cf535a |
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_05; |
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 float i=2f; |
b310cc8b0391
check that init doesn't change the value of the queried var
thomask
parents:
diff
changeset
|
9 assert(float.init==i.init); |
b310cc8b0391
check that init doesn't change the value of the queried var
thomask
parents:
diff
changeset
|
10 assert(i==2f); |
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 } |