diff options
Diffstat (limited to 'clang/test/Parser/argument_redef.c')
-rw-r--r-- | clang/test/Parser/argument_redef.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Parser/argument_redef.c b/clang/test/Parser/argument_redef.c new file mode 100644 index 0000000..519e8fd --- /dev/null +++ b/clang/test/Parser/argument_redef.c @@ -0,0 +1,6 @@ +/* RUN: %clang_cc1 -fsyntax-only -verify %s +*/ + +void foo(int A) { /* expected-note {{previous definition is here}} */ + int A; /* expected-error {{redefinition of 'A'}} */ +} |