Mercurial > projects > dstress
annotate run/o/opIn_01_B.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 | 902d2c168029 |
children |
rev | line source |
---|---|
1045 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 module dstress.run.o.opIn_01_B; | |
6 | |
7 class S{ | |
8 int x; | |
1091 | 9 |
1045 | 10 int opIn(int i){ |
11 return i + x; | |
12 } | |
13 } | |
14 | |
15 int main(){ | |
16 S s = new S(); | |
17 s.x = 3; | |
1091 | 18 |
1380 | 19 if((s in 5) != 8){ |
1045 | 20 assert(0); |
21 } | |
22 | |
23 return 0; | |
24 } |