Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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" } */
}