summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/c11-old-style-definition-2.c
blob: a22f555416d26c9dc09a09f976aa3a3cbc0403ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* Test old-style function definitions not in C2x: () does not give
   type with a prototype for older standards.  */
/* { dg-do compile } */
/* { dg-options "-std=c11" } */

void
f ()
{
}

void
g (void)
{
  f (1);
}