annotate run/bug_e2ir_141_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 be2b20dc0eb4
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
216
17b5647d8463 structs/unions and setters/getters
thomask
parents:
diff changeset
1 // $HeadURL$
17b5647d8463 structs/unions and setters/getters
thomask
parents:
diff changeset
2 // $Date$
17b5647d8463 structs/unions and setters/getters
thomask
parents:
diff changeset
3 // $Author$
17b5647d8463 structs/unions and setters/getters
thomask
parents:
diff changeset
4
17b5647d8463 structs/unions and setters/getters
thomask
parents:
diff changeset
5 // @author@ Vathix <vathix@dprogramming.com>
17b5647d8463 structs/unions and setters/getters
thomask
parents:
diff changeset
6 // @date@ 2004-12-29
17b5647d8463 structs/unions and setters/getters
thomask
parents:
diff changeset
7 // @uri@ news:opsjr1fu1jkcck4r@tc3-ppp187.dialup.wzrd.com
1383
52c9e86b6486 @url@ -> @uri@
thomask
parents: 435
diff changeset
8 // @uri@ nntp://digitalmars.com/digitalmars.D.bugs/2620
1410
be2b20dc0eb4 added bugzilla URIs
thomask
parents: 1386
diff changeset
9 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1037
216
17b5647d8463 structs/unions and setters/getters
thomask
parents:
diff changeset
10
17b5647d8463 structs/unions and setters/getters
thomask
parents:
diff changeset
11 module dstress.run.bug_e2ir_141_B;
17b5647d8463 structs/unions and setters/getters
thomask
parents:
diff changeset
12
17b5647d8463 structs/unions and setters/getters
thomask
parents:
diff changeset
13 class MyClass{
435
ec6d35cccfb5 pre dmd-0.121 review
thomask
parents: 216
diff changeset
14 static int _i;
ec6d35cccfb5 pre dmd-0.121 review
thomask
parents: 216
diff changeset
15
216
17b5647d8463 structs/unions and setters/getters
thomask
parents:
diff changeset
16 static int prop(){
435
ec6d35cccfb5 pre dmd-0.121 review
thomask
parents: 216
diff changeset
17 return _i;
216
17b5647d8463 structs/unions and setters/getters
thomask
parents:
diff changeset
18 }
17b5647d8463 structs/unions and setters/getters
thomask
parents:
diff changeset
19
17b5647d8463 structs/unions and setters/getters
thomask
parents:
diff changeset
20 static void prop(int i){
435
ec6d35cccfb5 pre dmd-0.121 review
thomask
parents: 216
diff changeset
21 _i=i;
216
17b5647d8463 structs/unions and setters/getters
thomask
parents:
diff changeset
22 }
17b5647d8463 structs/unions and setters/getters
thomask
parents:
diff changeset
23 }
17b5647d8463 structs/unions and setters/getters
thomask
parents:
diff changeset
24
17b5647d8463 structs/unions and setters/getters
thomask
parents:
diff changeset
25 int main(){
17b5647d8463 structs/unions and setters/getters
thomask
parents:
diff changeset
26 MyClass c = new MyClass();
17b5647d8463 structs/unions and setters/getters
thomask
parents:
diff changeset
27 c.prop = true ? MyClass.prop : MyClass.prop;
1386
7a397590d6e0 64-bit fixes
thomask
parents: 1383
diff changeset
28 if(0 != c.prop){
7a397590d6e0 64-bit fixes
thomask
parents: 1383
diff changeset
29 assert(0);
7a397590d6e0 64-bit fixes
thomask
parents: 1383
diff changeset
30 }
435
ec6d35cccfb5 pre dmd-0.121 review
thomask
parents: 216
diff changeset
31 c.prop = 7;
1386
7a397590d6e0 64-bit fixes
thomask
parents: 1383
diff changeset
32 if(7 != c.prop){
7a397590d6e0 64-bit fixes
thomask
parents: 1383
diff changeset
33 assert(0);
7a397590d6e0 64-bit fixes
thomask
parents: 1383
diff changeset
34 }
216
17b5647d8463 structs/unions and setters/getters
thomask
parents:
diff changeset
35 return 0;
17b5647d8463 structs/unions and setters/getters
thomask
parents:
diff changeset
36 }