annotate run/i/in_out_body_11_C.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
781
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
1 // $HeadURL$
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
2 // $Date$
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
3 // $Author$
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
4
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
5 // @author@ Stewart Gordon <smjg_1998@yahoo.com>
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
6 // @date@ 2005-12-12
1489
b8c0195059d9 changed nntp: URLs to http: URLs
thomask
parents: 781
diff changeset
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=5835
781
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
8
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
9 module dstress.run.i.in_out_body_11_C;
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
10
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
11 int inDerived;
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
12 int done;
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
13
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
14 class Base{
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
15 void test(int i)
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
16 in{
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
17 assert(0);
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
18 }body{
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
19 assert(0);
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
20 }
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
21 }
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
22
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
23 class Derived : Base{
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
24 void test(int i)
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
25 in{
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
26 inDerived++;
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
27 }body{
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
28 done++;
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
29 }
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
30 }
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
31
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
32 int main(){
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
33 Base b = new Derived();
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
34
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
35 b.test(1);
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
36
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
37 assert(done);
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
38 assert(inDerived == 1);
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
39
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
40 return 0;
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
41 }