1  /* { dg-do compile } */
       2  /* { dg-options "-Wall" } */
       3  
       4  struct A
       5  {
       6    char a[0][0][0];
       7  };
       8  extern struct A b[][2];
       9  void f (void)
      10  {
      11    __builtin_sprintf (b[0][0].a[1][0], "%s", b[0][0].a[1][0]); /* { dg-warning "past the end" } */
      12    /* { dg-warning "overlaps destination" "" { target *-*-* } .-1 } */
      13  }