Debian Codegraph @

gcc/testsuite/g++.dg/warn/Wstrict-aliasing-5.C

raw
1 /* { dg-do compile } */
2 /* { dg-options "-Wstrict-aliasing=2 -O2" } */
3
4 typedef unsigned uint32_t __attribute__((mode (__SI__)));
5
6 float foo ()
7 {
8 uint32_t MASK = 0x80000000;
9 return (float &) MASK; /* { dg-warning "strict-aliasing" } */
10 }
11