9 lines
215 B
C
9 lines
215 B
C
/* Test old-style function definitions not in C2x: errors. */
|
|
/* { dg-do compile } */
|
|
/* { dg-options "-std=c2x -pedantic-errors" } */
|
|
|
|
void
|
|
f (x) /* { dg-error "old-style function definition" } */
|
|
int x;
|
|
{
|
|
}
|