gcc/gcc/testsuite/gcc.dg/c11-old-style-definition-1.c

10 lines
172 B
C

/* Test old-style function definitions not in C2x: allowed in C11. */
/* { dg-do compile } */
/* { dg-options "-std=c11 -pedantic-errors" } */
void
f (x)
int x;
{
}