Mercurial > projects > dstress
annotate run/super_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 | f87ba6507260 |
children |
rev | line source |
---|---|
374 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
0 | 4 |
5 // @author@ J Anderson <REMOVEanderson@badmama.com.au> | |
6 // @date@ 2004-05-23 | |
7 | |
374 | 8 module dstress.run.super_04; |
9 | |
0 | 10 template MyTemplate(Type){ |
11 this(){ | |
12 super.test(); | |
13 } | |
14 } | |
15 | |
16 class Parent{ | |
17 int test(){ | |
18 return 2; | |
19 } | |
20 } | |
21 | |
22 class Child : Parent{ | |
23 mixin MyTemplate!(Child); | |
24 } | |
25 | |
26 int main(){ | |
27 Child c = new Child(); | |
28 return 0; | |
29 } |