annotate run/static_17.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 6e4063f99377
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
140
a33ad7189d21 1) news:// -> news:
thomask
parents: 122
diff changeset
1 // $HeadURL$
a33ad7189d21 1) news:// -> news:
thomask
parents: 122
diff changeset
2 // $Date$
a33ad7189d21 1) news:// -> news:
thomask
parents: 122
diff changeset
3 // $Author$
a33ad7189d21 1) news:// -> news:
thomask
parents: 122
diff changeset
4
122
bf7b8bf72262 Stewart Gordon <smjg_1998@yahoo.com> news://cmq61m$5rn$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2218
thomask
parents:
diff changeset
5 // @author@ Stewart Gordon <smjg_1998@yahoo.com>
bf7b8bf72262 Stewart Gordon <smjg_1998@yahoo.com> news://cmq61m$5rn$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2218
thomask
parents:
diff changeset
6 // @date@ 2004-11-09
140
a33ad7189d21 1) news:// -> news:
thomask
parents: 122
diff changeset
7 // @uri@ news:cmq61m$5rn$1@digitaldaemon.com
1487
6e4063f99377 changed nntp: URLs to http: URLs
thomask
parents: 1383
diff changeset
8 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=2218
122
bf7b8bf72262 Stewart Gordon <smjg_1998@yahoo.com> news://cmq61m$5rn$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2218
thomask
parents:
diff changeset
9
bf7b8bf72262 Stewart Gordon <smjg_1998@yahoo.com> news://cmq61m$5rn$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2218
thomask
parents:
diff changeset
10 module dstress.run.static_17;
bf7b8bf72262 Stewart Gordon <smjg_1998@yahoo.com> news://cmq61m$5rn$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2218
thomask
parents:
diff changeset
11
bf7b8bf72262 Stewart Gordon <smjg_1998@yahoo.com> news://cmq61m$5rn$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2218
thomask
parents:
diff changeset
12 class MyClass{
bf7b8bf72262 Stewart Gordon <smjg_1998@yahoo.com> news://cmq61m$5rn$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2218
thomask
parents:
diff changeset
13 static{
bf7b8bf72262 Stewart Gordon <smjg_1998@yahoo.com> news://cmq61m$5rn$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2218
thomask
parents:
diff changeset
14 int foo(){
bf7b8bf72262 Stewart Gordon <smjg_1998@yahoo.com> news://cmq61m$5rn$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2218
thomask
parents:
diff changeset
15 return 1;
bf7b8bf72262 Stewart Gordon <smjg_1998@yahoo.com> news://cmq61m$5rn$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2218
thomask
parents:
diff changeset
16 }
bf7b8bf72262 Stewart Gordon <smjg_1998@yahoo.com> news://cmq61m$5rn$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2218
thomask
parents:
diff changeset
17 }
bf7b8bf72262 Stewart Gordon <smjg_1998@yahoo.com> news://cmq61m$5rn$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2218
thomask
parents:
diff changeset
18
bf7b8bf72262 Stewart Gordon <smjg_1998@yahoo.com> news://cmq61m$5rn$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2218
thomask
parents:
diff changeset
19 static int bar(){
bf7b8bf72262 Stewart Gordon <smjg_1998@yahoo.com> news://cmq61m$5rn$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2218
thomask
parents:
diff changeset
20 return foo()+3;
bf7b8bf72262 Stewart Gordon <smjg_1998@yahoo.com> news://cmq61m$5rn$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2218
thomask
parents:
diff changeset
21 }
bf7b8bf72262 Stewart Gordon <smjg_1998@yahoo.com> news://cmq61m$5rn$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2218
thomask
parents:
diff changeset
22 }
bf7b8bf72262 Stewart Gordon <smjg_1998@yahoo.com> news://cmq61m$5rn$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2218
thomask
parents:
diff changeset
23
bf7b8bf72262 Stewart Gordon <smjg_1998@yahoo.com> news://cmq61m$5rn$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2218
thomask
parents:
diff changeset
24 int main(){
bf7b8bf72262 Stewart Gordon <smjg_1998@yahoo.com> news://cmq61m$5rn$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2218
thomask
parents:
diff changeset
25 assert(MyClass.bar()==4);
bf7b8bf72262 Stewart Gordon <smjg_1998@yahoo.com> news://cmq61m$5rn$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2218
thomask
parents:
diff changeset
26 return 0;
bf7b8bf72262 Stewart Gordon <smjg_1998@yahoo.com> news://cmq61m$5rn$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2218
thomask
parents:
diff changeset
27 }