annotate nocompile/cast_02.d @ 1576:b3e16c86558e

[Issue 1398] New: GDC doesn't generate correct code <mariusmuja@gmail.com> 2007-08-04 http://d.puremagic.com/issues/show_bug.cgi?id=1398
author thomask
date Thu, 21 Feb 2008 15:20:08 +0000
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 }