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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
232
2ffaa0006877 downcasting classes not an lvalue
thomask
parents:
diff changeset
1 // $HeadURL$
2ffaa0006877 downcasting classes not an lvalue
thomask
parents:
diff changeset
2 // $Date$
2ffaa0006877 downcasting classes not an lvalue
thomask
parents:
diff changeset
3 // $Author$
2ffaa0006877 downcasting classes not an lvalue
thomask
parents:
diff changeset
4
2ffaa0006877 downcasting classes not an lvalue
thomask
parents:
diff changeset
5 // @author@ Jarrett Billingsley <kb3ctd2@yahoo.com>
2ffaa0006877 downcasting classes not an lvalue
thomask
parents:
diff changeset
6 // @date@ 2005-01-09
2ffaa0006877 downcasting classes not an lvalue
thomask
parents:
diff changeset
7 // @uri@ news:crshla$2io3$1@digitaldaemon.com
1384
d3a3e0c251d8 nntp: -> http:
thomask
parents: 1383
diff changeset
8 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=2659
232
2ffaa0006877 downcasting classes not an lvalue
thomask
parents:
diff changeset
9
2ffaa0006877 downcasting classes not an lvalue
thomask
parents:
diff changeset
10 module dstress.run.cast_08;
2ffaa0006877 downcasting classes not an lvalue
thomask
parents:
diff changeset
11
2ffaa0006877 downcasting classes not an lvalue
thomask
parents:
diff changeset
12 class Parent{
2ffaa0006877 downcasting classes not an lvalue
thomask
parents:
diff changeset
13 }
2ffaa0006877 downcasting classes not an lvalue
thomask
parents:
diff changeset
14
2ffaa0006877 downcasting classes not an lvalue
thomask
parents:
diff changeset
15 class Child{
2ffaa0006877 downcasting classes not an lvalue
thomask
parents:
diff changeset
16 }
2ffaa0006877 downcasting classes not an lvalue
thomask
parents:
diff changeset
17
2ffaa0006877 downcasting classes not an lvalue
thomask
parents:
diff changeset
18 int main(){
2ffaa0006877 downcasting classes not an lvalue
thomask
parents:
diff changeset
19 Child c = new Child();
2ffaa0006877 downcasting classes not an lvalue
thomask
parents:
diff changeset
20 Parent p = cast(Parent) c;
2ffaa0006877 downcasting classes not an lvalue
thomask
parents:
diff changeset
21 p = null;
2ffaa0006877 downcasting classes not an lvalue
thomask
parents:
diff changeset
22 return 0;
2ffaa0006877 downcasting classes not an lvalue
thomask
parents:
diff changeset
23 }