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