Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / warn / Wstrict-aliasing-5.C
blob84c493c435f9d9493d623f077bb2ca578ce967f6
1 /* { dg-do compile } */
2 /* { dg-options "-Wstrict-aliasing=2 -O2" } */
4 typedef unsigned uint32_t __attribute__((mode (__SI__)));
6 float foo ()
8   uint32_t MASK = 0x80000000;
9   return (float &) MASK; /* { dg-warning "strict-aliasing" } */