Sign in
llvm
/
llvm-archive
/
089ca8750d7cd1f1ec96968922bf4bcfe223bb3a
/
.
/
clang-tests
/
gcc-4_2-testsuite
/
src
/
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" } */
}