summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/gcc.dg/Wold-style-definition-2.c
blob: a69aae6fd276237501166027f69ab488dabb9604 (plain)
1
2
3
4
5
6
7
8
9
10
/* PR c/12466
   Test for not warning about ellipsises with -Wold-style-definition. */

/* Origin: Kelley Cook <kcook@gcc.gnu.org> */
/* { dg-do compile } */
/* { dg-options "-Wold-style-definition" } */

void bar1 ( ... ) {} /* { dg-error "ISO C requires a named argument" } */

void bar2 (int a, ... ) {}
OpenPOWER on IntegriCloud