Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
gcc.dg
/
c2x-old-style-definition-4.c
blob: b1862b101b89baffd0f208fb3619581f52b308a3 [
file
] [
log
] [
blame
]
/* Test old-style function definitions not in C2x: () gives type with
a prototype. */
/* { dg-do compile } */
/* { dg-options "-std=c2x" } */
void
f
()
{
}
void
g
(
void
)
{
f
(
1
);
/* { dg-error "too many arguments to function" } */
}