aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/c11-stdarg-3.c
blob: 009292461bd7df02636353fad4f535b9a552eeed (plain)
1
2
3
4
5
6
7
8
/* Test variadic functions with no named parameters not supported in C11, but
   diagnostic disabled with -Wno-c11-c2x-compat.  */
/* { dg-do compile } */
/* { dg-options "-std=c11 -pedantic-errors -Wno-c11-c2x-compat" } */

int f (...);
int g (int (...));
int h (...) { return 0; }