Sign in
gnu
/
gcc
/
1ba7adabf29eb671e418692fad076ea6edd08e3d
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wstrict-aliasing-6.C
blob: 2d1a95bde1295c4a43442a9f88a3b81364b7aab9 [
file
] [
log
] [
blame
]
/* { dg-do compile } */
/* { dg-options "-Wstrict-aliasing=2 -O2" } */
int
foo
()
{
char
buf
[
8
];
return
*((
int
*)
buf
);
/* { dg-bogus "strict-aliasing" } */
}