YouCompleteMe/cpp/llvm/tools/clang/test/Parser/argument_redef.c

7 lines
174 B
C
Raw Normal View History

/* RUN: %clang_cc1 -fsyntax-only -verify %s
*/
void foo(int A) { /* expected-note {{previous definition is here}} */
int A; /* expected-error {{redefinition of 'A'}} */
}