arg-duplicate.c revision aaf9ddbeab08a43203cf6b9ca4986c8c6fe6fdc6
1// RUN: clang -fsyntax-only -verify %s 2 3int 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) { 12 f3 (1, 1, 2, 3, 4); // expected-error {{too many arguments to function}} 13} 14 15