Mercurial > projects > dstress
annotate nocompile/delegate_05.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 | 1f6cf5ccfbc9 |
children |
rev | line source |
---|---|
155 | 1 // $HeaderURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // delegates can't be initialized with static member functions or | |
6 // non-member functions | |
7 | |
338 | 8 // __DSTRESS_ELINE__ 22 |
9 | |
155 | 10 module dstress.nocompile.delegate_05; |
11 | |
12 class MyClass{ | |
13 static int test(){ | |
14 return 3; | |
15 } | |
16 } | |
17 | |
18 int main(){ | |
19 int delegate() dl; | |
20 | |
21 MyClass c; | |
22 dl = &c.test; | |
23 | |
24 return 0; | |
25 } |