annotate run/b/bug_d_codegen_1560_C.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 2f10fa84a21b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
777
2f10fa84a21b bulk offline commit
thomask
parents:
diff changeset
1 // $HeadURL$
2f10fa84a21b bulk offline commit
thomask
parents:
diff changeset
2 // $Date$
2f10fa84a21b bulk offline commit
thomask
parents:
diff changeset
3 // $Author$
2f10fa84a21b bulk offline commit
thomask
parents:
diff changeset
4
2f10fa84a21b bulk offline commit
thomask
parents:
diff changeset
5 // @author@ Thomas Kuehne <thomas-dloop@kuehne.cn>
2f10fa84a21b bulk offline commit
thomask
parents:
diff changeset
6 // @uri@ news:la2373-ccr.ln1@birke.kuehne.cn
2f10fa84a21b bulk offline commit
thomask
parents:
diff changeset
7
2f10fa84a21b bulk offline commit
thomask
parents:
diff changeset
8 module dstress.run.b.bug_d_codegen_1560_C;
2f10fa84a21b bulk offline commit
thomask
parents:
diff changeset
9
2f10fa84a21b bulk offline commit
thomask
parents:
diff changeset
10 void set(void[] result){
2f10fa84a21b bulk offline commit
thomask
parents:
diff changeset
11 }
2f10fa84a21b bulk offline commit
thomask
parents:
diff changeset
12
2f10fa84a21b bulk offline commit
thomask
parents:
diff changeset
13 void set(int result){
2f10fa84a21b bulk offline commit
thomask
parents:
diff changeset
14 set((&result)[0 .. 1]);
2f10fa84a21b bulk offline commit
thomask
parents:
diff changeset
15 }
2f10fa84a21b bulk offline commit
thomask
parents:
diff changeset
16
2f10fa84a21b bulk offline commit
thomask
parents:
diff changeset
17 void get(void[] value){
2f10fa84a21b bulk offline commit
thomask
parents:
diff changeset
18 }
2f10fa84a21b bulk offline commit
thomask
parents:
diff changeset
19
2f10fa84a21b bulk offline commit
thomask
parents:
diff changeset
20 void get(int value){
2f10fa84a21b bulk offline commit
thomask
parents:
diff changeset
21 get((&value)[0 .. 1]);
2f10fa84a21b bulk offline commit
thomask
parents:
diff changeset
22 }
2f10fa84a21b bulk offline commit
thomask
parents:
diff changeset
23
2f10fa84a21b bulk offline commit
thomask
parents:
diff changeset
24 int main(){
2f10fa84a21b bulk offline commit
thomask
parents:
diff changeset
25 return 0;
2f10fa84a21b bulk offline commit
thomask
parents:
diff changeset
26 }