hanchenye-llvm-project/clang/test/Parser/argument_redef.c

7 lines
172 B
C
Raw Normal View History

/* RUN: clang-cc -fsyntax-only -verify %s
2007-01-21 14:56:08 +08:00
*/
2009-07-22 08:43:08 +08:00
void foo(int A) { /* expected-note {{previous definition is here}} */
int A; /* expected-error {{redefinition of 'A'}} */
}