Warn pointer to signed integer cast for ilp32
[official-gcc.git] / gcc / testsuite / gcc.dg / alias-8.c
blob8eba671a05825d97cae1c770d2f767977c5b9c58
1 // { dg-do compile }
2 // { dg-options "-Wstrict-aliasing=2 -fstrict-aliasing" }
4 struct s {
5 char *p;
6 };
8 void
9 func(struct s *ptr)
11 *(void **)&ptr->p = 0; /* { dg-warning "type-punned pointer" "" { xfail *-*-* } } */