Sign in
chromium
/
native_client
/
nacl-toolchain
/
gcc-4.4.3
/
.
/
gcc
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wstrict-aliasing-6.C
blob: 6f935c8540bf8aefd4aa3312777816b96fbc0f7e [
file
] [
log
] [
blame
]
/* { dg-do compile } */
/* { dg-options "-Wstrict-aliasing=2 -O2" } */
int
foo
()
{
char
buf
[
8
];
return
*((
int
*)
buf
);
/* { dg-warning "strict-aliasing" } */
}