gcc/testsuite/gcc.dg/c11-stdarg-1.c
raw| 1 | /* Test variadic functions with no named parameters not supported in C11. */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-std=c11 -pedantic-errors" } */ |
| 4 | |
| 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" } */ |