Mercurial > projects > dstress
annotate run/cast_08.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 | d3a3e0c251d8 |
children |
rev | line source |
---|---|
232 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Jarrett Billingsley <kb3ctd2@yahoo.com> | |
6 // @date@ 2005-01-09 | |
7 // @uri@ news:crshla$2io3$1@digitaldaemon.com | |
1384 | 8 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=2659 |
232 | 9 |
10 module dstress.run.cast_08; | |
11 | |
12 class Parent{ | |
13 } | |
14 | |
15 class Child{ | |
16 } | |
17 | |
18 int main(){ | |
19 Child c = new Child(); | |
20 Parent p = cast(Parent) c; | |
21 p = null; | |
22 return 0; | |
23 } |