[flang] Fix crash in HLFIR generation (#118399)
[llvm-project.git] / clang / test / Sema / arg-duplicate.c
blob32ae139bede1c22c1ae99a93b7e4b78a49fae220
1 // RUN: %clang_cc1 -fsyntax-only -verify %s -std=c99
3 int f3(y, x, // expected-warning {{a function definition without a prototype is deprecated in all versions of C and is not supported in C23}}
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}}