blob: feeb458a3f42b6fb7057d978f0fa76e7dece1432 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
Chris Lattnerd472b312007-07-21 03:09:58 +00002
Chris Lattnerd472b312007-07-21 03:09:58 +00003int f3(y, x,
4 x) // expected-error {{redefinition of parameter}}
Chris Lattnerd84aac12010-02-22 00:40:25 +00005 int y,
6 x, // expected-note {{previous declaration is here}}
Chris Lattnerd472b312007-07-21 03:09:58 +00007 x; // expected-error {{redefinition of parameter}}
8{
9 return x + y;
10}
11
12void f4(void) {
Douglas Gregor74734d52009-04-02 15:37:10 +000013 f3 (1, 1, 2, 3, 4); // expected-warning{{too many arguments}}
Chris Lattnerd472b312007-07-21 03:09:58 +000014}
15