1  /* PR c/51628.  */
       2  /* { dg-do compile } */
       3  /* { dg-options "-O" } */
       4  
       5  typedef int v4si __attribute__((vector_size(16)));
       6  struct X
       7  {
       8    v4si x;
       9  } __attribute__((packed)) x;
      10  
      11  int *
      12  foo()
      13  {
      14    return &x.x[1];
      15  /* { dg-warning "may result in an unaligned pointer value" "" { target { ! default_packed } } .-1 } */
      16  }