arg-duplicate.c revision f8fd82ba49827db0f6a6ba00c55a7b56b12a19fa
1// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3int f3(y, x,
4       x)          // expected-error {{redefinition of parameter}}
5  int y, x,
6      x;           // expected-error {{redefinition of parameter}}
7{
8  return x + y;
9}
10
11void f4(void) {
12  f3 (1, 1, 2, 3, 4); // expected-warning{{too many arguments}}
13}
14
15