annotate run/i/in_out_body_11_H.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: 870
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
870
38ea1bb385b6 bit -> bool and __DSTRESS_TORTURE_BLOCK__ fixes
thomask
parents: 781
diff changeset
9 // __DSTRESS_TORTURE_BLOCK__ -release
38ea1bb385b6 bit -> bool and __DSTRESS_TORTURE_BLOCK__ fixes
thomask
parents: 781
diff changeset
10
781
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
11 module dstress.run.i.in_out_body_11_H;
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
12
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
13 int inDerived;
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
14 int inBase;
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
15 int done;
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
16
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
17 class Base{
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
18 void test(int i)
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
19 in{
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
20 inBase++;
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
21 assert(0);
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
22 }body{
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
23 assert(0);
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
24 }
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
25 }
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
26
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
27 class Derived : Base{
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
28 void test(int i)
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
29 in{
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
30 inDerived++;
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
31 assert(0);
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
32 }body{
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
33 done++;
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
34 }
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
35 }
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
36
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
37 int main(){
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
38 Derived d = new Derived();
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
39
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
40 try{
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
41 d.test(1);
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
42 }catch(Exception e){
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
43 assert(done == 0);
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
44 assert(inBase == 1);
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
45 assert(inDerived == 1);
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
46
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
47 return 0;
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
48 }
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
49 return 0;
56e9b89c4b72 Stewart Gordon <smjg_1998@yahoo.com>
thomask
parents:
diff changeset
50 }