Debian Codegraph @

gcc/testsuite/gcc.dg/c23-empty-init-4.c

raw
1 /* Test C23 support for empty initializers: invalid for empty arrays in
2 compound literals (bug 114266). */
3 /* { dg-do compile } */
4 /* { dg-options "-std=c23 -pedantic-errors" } */
5
6 void
7 f ()
8 {
9 (int []) { }; /* { dg-error "array of unknown size with empty initializer" } */
10 }