blob: ca091eb309e4e2a60a38dbd8e5f3bdaf19451d6e [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}}
5 int y, x,
6 x; // expected-error {{redefinition of parameter}}
7{
8 return x + y;
9}
10
11void f4(void) {
Douglas Gregor74734d52009-04-02 15:37:10 +000012 f3 (1, 1, 2, 3, 4); // expected-warning{{too many arguments}}
Chris Lattnerd472b312007-07-21 03:09:58 +000013}
14