Wstrict-aliasing-1.C   [plain text]


/* APPLE LOCAL file ARM 4683958 (-fstrict-aliasing added explictly) */
/* { dg-do compile { target arm*-*-darwin* } } */
/* { dg-options "-Wstrict-aliasing=2 -O2 -fstrict-aliasing" } */

double x;
int *foo(void)
{
  return (int *)&x; /* { dg-warning "strict-aliasing" } */
}