blob: 82b2992af3424e929408f536e5599dbc9d9ac63f [file] [log] [blame]
Daniel Dunbara45cf5b2009-03-24 02:24:46 +00001// RUN: clang-cc -fsyntax-only -verify %s
Chris Lattnera6f5ab52007-07-21 03:09:58 +00002
Chris Lattnera6f5ab52007-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 Gregor739ef0c2009-02-25 16:33:18 +000012 f3 (1, 1, 2, 3, 4);
Chris Lattnera6f5ab52007-07-21 03:09:58 +000013}
14