annotate nocompile/cast_02.d @ 870:38ea1bb385b6

bit -> bool and __DSTRESS_TORTURE_BLOCK__ fixes
author thomask
date Sun, 26 Feb 2006 17:45:46 +0000
parents 6aaba08b3ca2
children 52c9e86b6486
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
6aaba08b3ca2 can't cast pointer to array
thomask
parents:
diff changeset
8 // @url@ nntp://digitalmars.com/digitalmars.D.bugs/1407
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 }