Mercurial > projects > dstress
annotate nocompile/override_03.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$ | |
4 | |
70
5f98d4a33d49
1) review of all test cases with unexpected results (except encoding and html/xml)
thomask
parents:
1
diff
changeset
|
5 // override can only be applied to class functions |
374 | 6 |
7 // __DSTRESS_ELINE__ 16 | |
8 | |
70
5f98d4a33d49
1) review of all test cases with unexpected results (except encoding and html/xml)
thomask
parents:
1
diff
changeset
|
9 module dstress.nocompile.override_03; |
0 | 10 |
11 class Parent{ | |
12 int check; | |
13 } | |
14 | |
15 class Child : Parent{ | |
16 override int check; | |
17 } | |
18 | |
19 int main(){ | |
20 Child c = new Child(); | |
21 return c.check; | |
22 } |