Mercurial > projects > dstress
annotate run/init_05.d @ 1630:d0efa3ae5522 default tip
run/mini/naked_asm5: New x86_64 ABI passes the arguments in reverse order.
author | David Nadlinger <code@klickverbot.at> |
---|---|
date | Sat, 23 Apr 2011 22:57:32 +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_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; |
528 | 9 assert(float.init !<>= i.init); |
433
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 } |