Merged r158907 through r159238 into branch.
[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" } */