annotate nocompile/bug_cgcod_1445_A.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 d049cc89b187
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
362
d049cc89b187 bug_cgcod_1445
thomask
parents:
diff changeset
1 // $HeadURL$
d049cc89b187 bug_cgcod_1445
thomask
parents:
diff changeset
2 // $Date$
d049cc89b187 bug_cgcod_1445
thomask
parents:
diff changeset
3 // $Author$
d049cc89b187 bug_cgcod_1445
thomask
parents:
diff changeset
4
d049cc89b187 bug_cgcod_1445
thomask
parents:
diff changeset
5 // @author@ Brian Gardner <briangr@friberg.us>
d049cc89b187 bug_cgcod_1445
thomask
parents:
diff changeset
6 // @date@ 2005-03-23
d049cc89b187 bug_cgcod_1445
thomask
parents:
diff changeset
7 // @uri@ news:d1sald$2u6e$1@digitaldaemon.com
d049cc89b187 bug_cgcod_1445
thomask
parents:
diff changeset
8
d049cc89b187 bug_cgcod_1445
thomask
parents:
diff changeset
9 // __DSTRESS_ELINE__ 13
d049cc89b187 bug_cgcod_1445
thomask
parents:
diff changeset
10
d049cc89b187 bug_cgcod_1445
thomask
parents:
diff changeset
11 module dstress.nocompile.bug_cgcod_1445_A;
d049cc89b187 bug_cgcod_1445
thomask
parents:
diff changeset
12
d049cc89b187 bug_cgcod_1445
thomask
parents:
diff changeset
13 typedef u *u();
d049cc89b187 bug_cgcod_1445
thomask
parents:
diff changeset
14
d049cc89b187 bug_cgcod_1445
thomask
parents:
diff changeset
15 u s(){
d049cc89b187 bug_cgcod_1445
thomask
parents:
diff changeset
16 static int x = 0;
d049cc89b187 bug_cgcod_1445
thomask
parents:
diff changeset
17 return s;
d049cc89b187 bug_cgcod_1445
thomask
parents:
diff changeset
18 }
d049cc89b187 bug_cgcod_1445
thomask
parents:
diff changeset
19
d049cc89b187 bug_cgcod_1445
thomask
parents:
diff changeset
20 int main(){
d049cc89b187 bug_cgcod_1445
thomask
parents:
diff changeset
21 s();
d049cc89b187 bug_cgcod_1445
thomask
parents:
diff changeset
22 return 0;
d049cc89b187 bug_cgcod_1445
thomask
parents:
diff changeset
23 }
d049cc89b187 bug_cgcod_1445
thomask
parents:
diff changeset
24