Mercurial > projects > dstress
annotate nocompile/this_07.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 | 9a121126b077 |
children |
rev | line source |
---|---|
419 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Benjamin Herr | |
6 // @date@ 2005-04-09 | |
7 | |
756 | 8 // __DSTRESS_ELINE__ 25 |
419 | 9 |
10 module dstress.nocompile.this_07; | |
11 | |
12 class Foo { | |
13 this(int i) { | |
14 this.i = i; | |
15 } | |
16 | |
17 void f() { | |
18 assert(i); | |
19 } | |
20 | |
21 int i; | |
22 } | |
23 | |
24 int main() { | |
25 void function() fg = &Foo.f; | |
26 | |
27 fg(); | |
28 | |
29 return 0; | |
30 } |