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