☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
gcc.dg
/
c23-old-style-definition-2.c
☽
☼
gcc/testsuite/gcc.dg/c23-old-style-definition-2.c
code
plain
raw
1
/* Test old-style function definitions not in C23: errors. */
2
/* { dg-do compile } */
3
/* { dg-options "-std=c23 -pedantic-errors" } */
4
5
void
6
f (x) /* { dg-error "old-style function definition" } */
7
int x;
8
{
9
}