knr-def-call.c revision 2224f84658fb9b3725a31f2680edb64ae73bf705
1// RUN: clang -fsyntax-only -verify %s
2
3// C DR #316, PR 3626.
4void f0(a, b, c, d) int a,b,c,d; {}
5void t0(void) { f0(1); }
6
7void f1(a, b) int a, b; {}
8void t1(void) { f1(1, 2, 3); }
9
10void f2(float); // expected-note{{previous declaration is here}}
11void f2(x) float x; { } // expected-error{{conflicting types for 'f2'}}
12
13typedef void (*f3)(void);
14f3 t3(int b) { return b? f0 : f1; } // okay
15