comparison gcc/testsuite/gcc.dg/c11-old-style-definition-2.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents
children
comparison
equal deleted inserted replaced
131:84e7813d76e9 145:1830386684a0
1 /* Test old-style function definitions not in C2x: () does not give
2 type with a prototype for older standards. */
3 /* { dg-do compile } */
4 /* { dg-options "-std=c11" } */
5
6 void
7 f ()
8 {
9 }
10
11 void
12 g (void)
13 {
14 f (1);
15 }