2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -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-04-02 23:37:10 +08:00
|
|
|
f3 (1, 1, 2, 3, 4); // expected-warning{{too many arguments}}
|
2007-07-21 11:09:58 +08:00
|
|
|
}
|
|
|
|
|