mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
13 lines
235 B
D
13 lines
235 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail77.d(11): Error: cannot cast expression `& i` of type `int*` to `ubyte[4]`
|
|
---
|
|
*/
|
|
void test()
|
|
{
|
|
int i;
|
|
ubyte[4] ub;
|
|
ub[] = cast(ubyte[4]) &i;
|
|
//ub[] = (cast(ubyte*) &i)[0..4];
|
|
}
|