(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
pr51628-22.c
       1  /* PR c/51628.  */
       2  /* { dg-do compile } */
       3  /* { dg-options "-O -Wno-incompatible-pointer-types" } */
       4  
       5  struct B { int i; };
       6  struct C { struct B b; } __attribute__ ((packed));
       7  
       8  int* g4 (struct C *p) { return &p->b; }
       9  /* { dg-warning "may result in an unaligned pointer value" "" { target { ! default_packed } } .-1 } */