blob: 82b2992af3424e929408f536e5599dbc9d9ac63f [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 Gregor1f88aa72009-02-25 16:33:18 +000012 f3 (1, 1, 2, 3, 4);
Chris Lattner4b009652007-07-25 00:24:17 +000013}
14