Mercurial > projects > dstress
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 |
rev | line source |
---|---|
140 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
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 | 7 // @uri@ news:cmq61m$5rn$1@digitaldaemon.com |
1487 | 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 } |