Allow resolving headers from a PCH even after headers+PCH were moved to another path.
[clang.git] / test / Sema / arg-duplicate.c
blobfeeb458a3f42b6fb7057d978f0fa76e7dece1432
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 int f3(y, x,
4 x) // expected-error {{redefinition of parameter}}
5 int y,
6 x, // expected-note {{previous declaration is here}}
7 x; // expected-error {{redefinition of parameter}}
9 return x + y;
12 void f4(void) {
13 f3 (1, 1, 2, 3, 4); // expected-warning{{too many arguments}}