http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
[official-gcc.git] / gcc / testsuite / g++.dg / warn / Wstrict-aliasing-5.C
bloba049251186585a1d86dd1084abc023ce80dbf9d9
1 /* { dg-do compile } */
2 /* { dg-options "-Wstrict-aliasing=2 -O2" } */
4 float foo ()
6   unsigned int MASK = 0x80000000;
7   return (float &) MASK; /* { dg-warning "strict-aliasing" } */