Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / gcc.dg / alias-8.c
blob690f1b62da94bd8045ab83bed16052de232dafeb
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" } */