Sign in
gnu
/
gcc
/
refs/tags/basepoints/gcc-13
/
.
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
fail77.d
blob: 2d291fc9f5cfa421b619abe6b48ad815a8a689c1 [
file
] [
log
] [
blame
]
/*
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];
}