blob: 5d44a72ecb3aa18f6fc0abd6d2a6ab0712536555 [file] [log] [blame]
Chris Lattnerd472b312007-07-21 03:09:58 +00001// RUN: clang -parse-ast-check %s
2
3typedef int x;
4int f3(y, x,
5 x) // expected-error {{redefinition of parameter}}
6 int y, x,
7 x; // expected-error {{redefinition of parameter}}
8{
9 return x + y;
10}
11
12void f4(void) {
13 f3 (1, 1, 2, 3, 4); // expected-error {{too many arguments to function}}
14}
15