Sign in
gnu
/
gcc
/
refs/tags/releases/gcc-4.3.2
/
.
/
gcc
/
testsuite
/
gcc.dg
/
alias-8.c
blob: 690f1b62da94bd8045ab83bed16052de232dafeb [
file
] [
log
] [
blame
]
// { dg-do compile }
// { dg-options "-Wstrict-aliasing=2 -fstrict-aliasing" }
struct
s
{
char
*
p
;
};
void
func
(
struct
s
*
ptr
)
{
*(
void
**)&
ptr
->
p
=
0
;
/* { dg-warning "type-punned pointer" } */
}