annotate nocompile/cast_02.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 774e02c900da
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
354
6aaba08b3ca2 can't cast pointer to array
thomask
parents:
diff changeset
1 // $HeadURL$
6aaba08b3ca2 can't cast pointer to array
thomask
parents:
diff changeset
2 // $Date$
6aaba08b3ca2 can't cast pointer to array
thomask
parents:
diff changeset
3 // $Author$
6aaba08b3ca2 can't cast pointer to array
thomask
parents:
diff changeset
4
6aaba08b3ca2 can't cast pointer to array
thomask
parents:
diff changeset
5 // @author@ Regan Heath <regan@netwin.co.nz>
6aaba08b3ca2 can't cast pointer to array
thomask
parents:
diff changeset
6 // @date@ 2004-08-19
6aaba08b3ca2 can't cast pointer to array
thomask
parents:
diff changeset
7 // @uri@ news:opsczziyi5a2sq9@digitalmars.com
1485
774e02c900da changed nntp: URLs to http: URLs
thomask
parents: 1383
diff changeset
8 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=1407
354
6aaba08b3ca2 can't cast pointer to array
thomask
parents:
diff changeset
9
6aaba08b3ca2 can't cast pointer to array
thomask
parents:
diff changeset
10 // __DSTRESS_ELINE__ 22
6aaba08b3ca2 can't cast pointer to array
thomask
parents:
diff changeset
11
6aaba08b3ca2 can't cast pointer to array
thomask
parents:
diff changeset
12 module dstress.nocompile.cast_02;
6aaba08b3ca2 can't cast pointer to array
thomask
parents:
diff changeset
13
6aaba08b3ca2 can't cast pointer to array
thomask
parents:
diff changeset
14 enum Enum{
6aaba08b3ca2 can't cast pointer to array
thomask
parents:
diff changeset
15 a
6aaba08b3ca2 can't cast pointer to array
thomask
parents:
diff changeset
16 }
6aaba08b3ca2 can't cast pointer to array
thomask
parents:
diff changeset
17
6aaba08b3ca2 can't cast pointer to array
thomask
parents:
diff changeset
18 int main(){
870
38ea1bb385b6 bit -> bool and __DSTRESS_TORTURE_BLOCK__ fixes
thomask
parents: 354
diff changeset
19 bool[] b;
354
6aaba08b3ca2 can't cast pointer to array
thomask
parents:
diff changeset
20 Enum e;
870
38ea1bb385b6 bit -> bool and __DSTRESS_TORTURE_BLOCK__ fixes
thomask
parents: 354
diff changeset
21 b = cast(bool[])
38ea1bb385b6 bit -> bool and __DSTRESS_TORTURE_BLOCK__ fixes
thomask
parents: 354
diff changeset
22 (cast(bool*)e);
354
6aaba08b3ca2 can't cast pointer to array
thomask
parents:
diff changeset
23 return 0;
6aaba08b3ca2 can't cast pointer to array
thomask
parents:
diff changeset
24 }