Mercurial > projects > dstress
annotate run/interface_10.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 | 52c9e86b6486 |
children |
rev | line source |
---|---|
209 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
360 | 5 // @author@ Miguel Ferreira Simões <Kobold@netcabo.pt> |
209 | 6 // @date@ 2004-12-23 |
7 // @uri@ news:cqe7j0$2fl3$1@digitaldaemon.com | |
1383 | 8 // @uri@ nntp://digitalmars.com/digitalmars.D/14003 |
209 | 9 |
10 module dstress.run.interface_10; | |
11 | |
12 interface ITest{ | |
13 static int dummy(); | |
14 } | |
15 | |
16 class Test : ITest{ | |
17 static int dummy(){ | |
18 return 5; | |
19 } | |
20 } | |
21 | |
22 int main(){ | |
23 Test t = new Test(); | |
24 assert(t.dummy()==5); | |
25 return 0; | |
26 } |