summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/invalid-decl.c
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-02-22 06:58:37 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-02-22 06:58:37 +0000
commit1fcd7fd633a44ab3ec944a5102afea74fcc8a23e (patch)
tree8e1241701e8fcf2e566cf19321a269333239656c /clang/test/Sema/invalid-decl.c
parent425daaa5d258d927a5f608fc92f7685dbc36db66 (diff)
downloadbcm5719-llvm-1fcd7fd633a44ab3ec944a5102afea74fcc8a23e.tar.gz
bcm5719-llvm-1fcd7fd633a44ab3ec944a5102afea74fcc8a23e.zip
In LookupResult::resolveKind(), when handling multiple found declarations, ignore invalid declarations.
This reduces the "ambiguous reference" errors (which are rather strange in C/ObjC) and fixes an assertion hit with an invalid code test case. llvm-svn: 175869
Diffstat (limited to 'clang/test/Sema/invalid-decl.c')
-rw-r--r--clang/test/Sema/invalid-decl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Sema/invalid-decl.c b/clang/test/Sema/invalid-decl.c
index 4e628817d22..950d51deb4c 100644
--- a/clang/test/Sema/invalid-decl.c
+++ b/clang/test/Sema/invalid-decl.c
@@ -42,3 +42,7 @@ void foo() {
void test2();
void test2(undef); // expected-error {{a parameter list without types is only allowed in a function definition}}
void test2() { }
+
+void test3();
+void test3; // expected-error {{incomplete type}}
+void test3() { }
OpenPOWER on IntegriCloud