Source

gdc / gdc.test / fail_compilation / fail77.d

1
2
3
4
5
6
7
8
void test()
{
   int i;
   ubyte[4] ub;
   ub[] = cast(ubyte[4]) &i;
   //ub[] = (cast(ubyte*) &i)[0..4];
}