Sign in
llvm
/
llvm-archive
/
48649d2c83b557841c9e5c978d9ab5af13cb52e5
/
.
/
llvm-gcc-4.2
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wstrict-aliasing-1.C
blob: c17d20f85a1e8185ff06b9e0d329dc5f4c07519f [
file
] [
log
] [
blame
]
/* { dg-do compile } */
/* APPLE LOCAL begin radar 4872051 */
/* { dg-options "-Wstrict-aliasing=2 -O2 -fstrict-aliasing" } */
/* APPLE LOCAL end radar 4872051 */
double
x
;
int
*
foo
(
void
)
{
return
(
int
*)&
x
;
/* { dg-warning "strict-aliasing" } */
}