annotate run/bug_e2ir_141_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 6e4063f99377
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
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=2620
216
17b5647d8463 structs/unions and setters/getters
thomask
parents:
diff changeset
9
17b5647d8463 structs/unions and setters/getters
thomask
parents:
diff changeset
10 module dstress.run.bug_e2ir_141_C;
17b5647d8463 structs/unions and setters/getters
thomask
parents:
diff changeset
11
17b5647d8463 structs/unions and setters/getters
thomask
parents:
diff changeset
12 class MyClass{
17b5647d8463 structs/unions and setters/getters
thomask
parents:
diff changeset
13 static MyClass prop(){
17b5647d8463 structs/unions and setters/getters
thomask
parents:
diff changeset
14 return dummy;
17b5647d8463 structs/unions and setters/getters
thomask
parents:
diff changeset
15 }
17b5647d8463 structs/unions and setters/getters
thomask
parents:
diff changeset
16
17b5647d8463 structs/unions and setters/getters
thomask
parents:
diff changeset
17 static void prop(MyClass o){
435
ec6d35cccfb5 pre dmd-0.121 review
thomask
parents: 216
diff changeset
18 dummy=o;
216
17b5647d8463 structs/unions and setters/getters
thomask
parents:
diff changeset
19 }
17b5647d8463 structs/unions and setters/getters
thomask
parents:
diff changeset
20 }
17b5647d8463 structs/unions and setters/getters
thomask
parents:
diff changeset
21
17b5647d8463 structs/unions and setters/getters
thomask
parents:
diff changeset
22 MyClass dummy;
17b5647d8463 structs/unions and setters/getters
thomask
parents:
diff changeset
23
17b5647d8463 structs/unions and setters/getters
thomask
parents:
diff changeset
24 int main(){
17b5647d8463 structs/unions and setters/getters
thomask
parents:
diff changeset
25 dummy = new MyClass();
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;
570
32f7f8ce5e51 updated "===" -> "is" and "!==" to "!(...===...)"
thomask
parents: 435
diff changeset
28 assert(c.prop is dummy);
216
17b5647d8463 structs/unions and setters/getters
thomask
parents:
diff changeset
29 return 0;
17b5647d8463 structs/unions and setters/getters
thomask
parents:
diff changeset
30 }