Mercurial > projects > dstress
annotate run/private_04.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 | 6b68cdea884d |
children |
rev | line source |
---|---|
404 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Kevin VR <azra@pandora.be> | |
6 // @date@ 2005-04-07 | |
7 // @uri@ news:d31ndi$amo$1@digitaldaemon.com | |
8 | |
9 module dstress.run.private_04; | |
10 | |
11 class Bar(Type){ | |
12 this(){ | |
13 } | |
14 | |
15 private int doSomething(){ | |
16 return 2; | |
17 } | |
18 } | |
19 | |
20 int main(){ | |
21 Bar!(int) b = new Bar!(int)(); | |
22 assert(2==b.doSomething()); | |
23 return 0; | |
24 } |