aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/c11-stdarg-2.c
blob: bd115e8850c8e06a9a831c765983f4bba321ed46 (plain)
1
2
3
4
5
6
7
/* Test variadic functions with no named parameters not supported in C11.  */
/* { dg-do compile } */
/* { dg-options "-std=c11 -pedantic" } */

int f (...); /* { dg-warning "ISO C requires a named argument before" } */
int g (int (...)); /* { dg-warning "ISO C requires a named argument before" } */
int h (...) { return 0; } /* { dg-warning "ISO C requires a named argument before" } */