blob: e40a964234d9b9bf592fef7460652ad4cf7dde2e [file] [log] [blame]
Daniel Dunbarffd408a2009-03-24 02:24:46 +00001// RUN: clang-cc -fsyntax-only -verify %s
Chris Lattner4b009652007-07-25 00:24:17 +00002
Chris Lattner4b009652007-07-25 00:24:17 +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 Gregora8f2ae62009-04-02 15:37:10 +000012 f3 (1, 1, 2, 3, 4); // expected-warning{{too many arguments}}
Chris Lattner4b009652007-07-25 00:24:17 +000013}
14