1 // https://issues.dlang.org/show_bug.cgi?id=23077
2 // { dg-additional-options "-mavx" { target avx_runtime } }
4 // { dg-skip-if "needs gcc/config.d" { ! d_runtime } }
6 float test23077(float x
)
8 short i
= *cast(short*)&x
;
10 return *cast(float*)&i
; // this cast is not allowed in @safe code