2009-03-24 10:24:46 +08:00
|
|
|
// RUN: clang-cc -fsyntax-only -verify %s
|
2007-07-21 11:09:58 +08:00
|
|
|
|
|
|
|
int f3(y, x,
|
|
|
|
x) // expected-error {{redefinition of parameter}}
|
|
|
|
int y, x,
|
|
|
|
x; // expected-error {{redefinition of parameter}}
|
|
|
|
{
|
|
|
|
return x + y;
|
|
|
|
}
|
|
|
|
|
|
|
|
void f4(void) {
|
2009-02-26 00:33:18 +08:00
|
|
|
f3 (1, 1, 2, 3, 4);
|
2007-07-21 11:09:58 +08:00
|
|
|
}
|
|
|
|
|