| 1 |
/* Test old-style function definitions not in C23: () gives type with |
| 2 |
a prototype. */ |
| 3 |
/* { dg-do compile } */ |
| 4 |
/* { dg-options "-std=c23" } */ |
| 5 |
|
| 6 |
void |
| 7 |
f () |
| 8 |
{ |
| 9 |
} |
| 10 |
|
| 11 |
void |
| 12 |
g (void) |
| 13 |
{ |
| 14 |
f (1); /* { dg-error "too many arguments to function" } */ |
| 15 |
} |