1 /* Test old-style function definitions not in C2x: () gives type with
2 a prototype. */
3 /* { dg-do compile } */
4 /* { dg-options "-std=c2x" } */
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 }