Sign in
android
/
toolchain
/
gcc
/
donut
/
.
/
gcc-4.3.1
/
gcc
/
testsuite
/
gcc.dg
/
Wstrict-aliasing-converted-assigned.c
blob: 409120f2a40ac7b70f2398af69d7d56ab043573d [
file
] [
log
] [
blame
]
/* { dg-do compile } */
/* { dg-options "-O2 -Wstrict-aliasing -fstrict-aliasing" } */
int
foo
()
{
int
i
;
*(
long
*)&
i
=
0
;
/* { dg-warning "type-punn" } */
return
i
;
}