(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
pr71362.c
       1  /* PR c/71362 */
       2  /* { dg-do compile } */
       3  
       4  extern void foo (int[-1]); /* { dg-error "21:size of unnamed array is negative" } */
       5  
       6  int
       7  bar (void)
       8  {
       9    123 + sizeof (int[-1]); /* { dg-error "20:size of unnamed array is negative" } */
      10  }