annotate run/static_14.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: 86
diff changeset
1 // $HeadURL$
a33ad7189d21 1) news:// -> news:
thomask
parents: 86
diff changeset
2 // $Date$
a33ad7189d21 1) news:// -> news:
thomask
parents: 86
diff changeset
3 // $Author$
a33ad7189d21 1) news:// -> news:
thomask
parents: 86
diff changeset
4
86
2535744a5310 tetsuya <tetsuya_member@pathlink.com> news://cm057b$13nu$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2165
thomask
parents:
diff changeset
5 // @author@ tetsuya <tetsuya_member@pathlink.com>
2535744a5310 tetsuya <tetsuya_member@pathlink.com> news://cm057b$13nu$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2165
thomask
parents:
diff changeset
6 // @date@ 2004-10-30
140
a33ad7189d21 1) news:// -> news:
thomask
parents: 86
diff changeset
7 // @uri@ news:cm057b$13nu$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=2165
86
2535744a5310 tetsuya <tetsuya_member@pathlink.com> news://cm057b$13nu$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2165
thomask
parents:
diff changeset
9
2535744a5310 tetsuya <tetsuya_member@pathlink.com> news://cm057b$13nu$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2165
thomask
parents:
diff changeset
10 module dstress.run.static_14;
2535744a5310 tetsuya <tetsuya_member@pathlink.com> news://cm057b$13nu$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2165
thomask
parents:
diff changeset
11
2535744a5310 tetsuya <tetsuya_member@pathlink.com> news://cm057b$13nu$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2165
thomask
parents:
diff changeset
12 class MyClass{
2535744a5310 tetsuya <tetsuya_member@pathlink.com> news://cm057b$13nu$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2165
thomask
parents:
diff changeset
13 static {
2535744a5310 tetsuya <tetsuya_member@pathlink.com> news://cm057b$13nu$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2165
thomask
parents:
diff changeset
14 int x;
2535744a5310 tetsuya <tetsuya_member@pathlink.com> news://cm057b$13nu$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2165
thomask
parents:
diff changeset
15 }
2535744a5310 tetsuya <tetsuya_member@pathlink.com> news://cm057b$13nu$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2165
thomask
parents:
diff changeset
16 static this() {
2535744a5310 tetsuya <tetsuya_member@pathlink.com> news://cm057b$13nu$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2165
thomask
parents:
diff changeset
17 x=2;
2535744a5310 tetsuya <tetsuya_member@pathlink.com> news://cm057b$13nu$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2165
thomask
parents:
diff changeset
18 }
2535744a5310 tetsuya <tetsuya_member@pathlink.com> news://cm057b$13nu$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2165
thomask
parents:
diff changeset
19 }
2535744a5310 tetsuya <tetsuya_member@pathlink.com> news://cm057b$13nu$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2165
thomask
parents:
diff changeset
20
2535744a5310 tetsuya <tetsuya_member@pathlink.com> news://cm057b$13nu$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2165
thomask
parents:
diff changeset
21 int main(){
2535744a5310 tetsuya <tetsuya_member@pathlink.com> news://cm057b$13nu$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2165
thomask
parents:
diff changeset
22 assert(MyClass.x==2);
2535744a5310 tetsuya <tetsuya_member@pathlink.com> news://cm057b$13nu$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2165
thomask
parents:
diff changeset
23 return 0;
2535744a5310 tetsuya <tetsuya_member@pathlink.com> news://cm057b$13nu$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2165
thomask
parents:
diff changeset
24 }