blob: e40a964234d9b9bf592fef7460652ad4cf7dde2e [file] [log] [blame]
Daniel Dunbard7d5f022009-03-24 02:24:46 +00001// RUN: clang-cc -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