Sign in
gnu
/
gcc
/
a5b5cabc91c38710adbe5c8a2b53882abe994441
/
.
/
gcc
/
testsuite
/
gcc.dg
/
Wstrict-aliasing-bogus-never-dereferenced.c
blob: fd3f767ac8618e082481cc1e03d970fd2e6f9a5d [
file
] [
log
] [
blame
]
/* { dg-do compile } */
/* { dg-options "-O2 -Wstrict-aliasing -fstrict-aliasing" } */
int
foo
()
{
int
x
=
10
;
int
*
p
;
float
*
q
;
q
=
(
float
*)
&
x
;
/* { dg-bogus "not referenced" } */
return
x
;
}