Debian Codegraph @

gcc/testsuite/gcc.dg/c2y-generic-3.c

raw
1 /* Test C2Y _Generic features: VM types still not allowed. */
2 /* { dg-do compile } */
3 /* { dg-options "-std=c2y -pedantic-errors" } */
4
5 void
6 f (int i)
7 {
8 (void) _Generic (i, int : 1, int (*)[i] : 2); /* { dg-error "variable length" } */
9 }