(root)/
gcc-13.2.0/
gcc/
testsuite/
c-c++-common/
array-lit.c
       1  /* { dg-options "-std=c99 -Wc++-compat -Werror" { target c } } */
       2  /* { dg-prune-output "treated as errors" } */
       3  #include <stdio.h>
       4  
       5  int main()
       6  {
       7    for (int *p = (int[]){ 1, 2, 3, 0 }; /* { dg-error "array" } */
       8         *p; ++p) {
       9      printf("%d\n", *p);
      10    }
      11    return 0;
      12  }