Sign in
gnu
/
gcc
/
refs/tags/basepoints/gcc-13
/
.
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
test19646.d
blob: ee0b042f7a798e6e24bbc1c6196cb792de9b0102 [
file
] [
log
] [
blame
]
/* TEST_OUTPUT:
---
fail_compilation/test19646.d(11): Error: cast from `const(int)*` to `int*` not allowed in safe code
---
https://issues.dlang.org/show_bug.cgi?id=19646
*/
@safe
:
const
x
=
42
;
int
*
y
=
cast
(
int
*)&
x
;