llvm-for-llvmta/tools/clang/test/Parser/argument_redef.c

7 lines
174 B
C
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
/* RUN: %clang_cc1 -fsyntax-only -verify %s
*/
void foo(int A) { /* expected-note {{previous definition is here}} */
int A; /* expected-error {{redefinition of 'A'}} */
}