1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -fsyntax-only -verify %s
2*f4a2713aSLionel Sambuc
f3(y,x,x)3*f4a2713aSLionel Sambuc int f3(y, x,
4*f4a2713aSLionel Sambuc x) // expected-error {{redefinition of parameter}}
5*f4a2713aSLionel Sambuc int y,
6*f4a2713aSLionel Sambuc x, // expected-note {{previous declaration is here}}
7*f4a2713aSLionel Sambuc x; // expected-error {{redefinition of parameter}}
8*f4a2713aSLionel Sambuc {
9*f4a2713aSLionel Sambuc return x + y;
10*f4a2713aSLionel Sambuc }
11*f4a2713aSLionel Sambuc
f4(void)12*f4a2713aSLionel Sambuc void f4(void) {
13*f4a2713aSLionel Sambuc f3 (1, 1, 2, 3, 4); // expected-warning{{too many arguments}}
14*f4a2713aSLionel Sambuc }
15*f4a2713aSLionel Sambuc
16