Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gcc.dg / c11-stdarg-1.c
blob984577fe656fefd42d0e2a8db780a88a4fc4dd9e
1 /* Test variadic functions with no named parameters not supported in C11. */
2 /* { dg-do compile } */
3 /* { dg-options "-std=c11 -pedantic-errors" } */
5 int f (...); /* { dg-error "ISO C requires a named argument before" } */
6 int g (int (...)); /* { dg-error "ISO C requires a named argument before" } */
7 int h (...) { return 0; } /* { dg-error "ISO C requires a named argument before" } */