1 /* { dg-do compile } */
2 /* { dg-options "-Wstrict-aliasing=2 -O2" } */
3 
4 double x;
foo(void)5 int *foo(void)
6 {
7   return (int *)&x; /* { dg-warning "strict-aliasing" } */
8 }
9 
10