annotate run/s/static_34_B.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 b8c0195059d9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
731
c56770fab949 Kris <du@bar.com>
thomask
parents:
diff changeset
1 // $HeadURL$
c56770fab949 Kris <du@bar.com>
thomask
parents:
diff changeset
2 // $Date$
c56770fab949 Kris <du@bar.com>
thomask
parents:
diff changeset
3 // $Author$
c56770fab949 Kris <du@bar.com>
thomask
parents:
diff changeset
4
c56770fab949 Kris <du@bar.com>
thomask
parents:
diff changeset
5 // @author@ Kris <du@bar.com>
c56770fab949 Kris <du@bar.com>
thomask
parents:
diff changeset
6 // @date@ 2005-10-28
1489
b8c0195059d9 changed nntp: URLs to http: URLs
thomask
parents: 731
diff changeset
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=5233
731
c56770fab949 Kris <du@bar.com>
thomask
parents:
diff changeset
8
c56770fab949 Kris <du@bar.com>
thomask
parents:
diff changeset
9 module dstress.run.s.static_34_B;
c56770fab949 Kris <du@bar.com>
thomask
parents:
diff changeset
10
c56770fab949 Kris <du@bar.com>
thomask
parents:
diff changeset
11 int main(){
c56770fab949 Kris <du@bar.com>
thomask
parents:
diff changeset
12 static class C{
c56770fab949 Kris <du@bar.com>
thomask
parents:
diff changeset
13 static C create(){
c56770fab949 Kris <du@bar.com>
thomask
parents:
diff changeset
14 return new C;
c56770fab949 Kris <du@bar.com>
thomask
parents:
diff changeset
15 }
c56770fab949 Kris <du@bar.com>
thomask
parents:
diff changeset
16 }
c56770fab949 Kris <du@bar.com>
thomask
parents:
diff changeset
17
c56770fab949 Kris <du@bar.com>
thomask
parents:
diff changeset
18 C c1 = new C;
c56770fab949 Kris <du@bar.com>
thomask
parents:
diff changeset
19 assert(c1);
c56770fab949 Kris <du@bar.com>
thomask
parents:
diff changeset
20
c56770fab949 Kris <du@bar.com>
thomask
parents:
diff changeset
21 C c2 = c1.create();
c56770fab949 Kris <du@bar.com>
thomask
parents:
diff changeset
22 assert(c2);
c56770fab949 Kris <du@bar.com>
thomask
parents:
diff changeset
23
c56770fab949 Kris <du@bar.com>
thomask
parents:
diff changeset
24 C c3 = C.create();
c56770fab949 Kris <du@bar.com>
thomask
parents:
diff changeset
25 assert(c3);
c56770fab949 Kris <du@bar.com>
thomask
parents:
diff changeset
26
c56770fab949 Kris <du@bar.com>
thomask
parents:
diff changeset
27 return 0;
c56770fab949 Kris <du@bar.com>
thomask
parents:
diff changeset
28 }
c56770fab949 Kris <du@bar.com>
thomask
parents:
diff changeset
29