summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2010-08-10 22:30:29 +0000
committerTed Kremenek <kremenek@apple.com>2010-08-10 22:30:29 +0000
commit19183acd1f180f644cecc49e4a9f6554834693b7 (patch)
tree8e6b2a3eae6dd7feff78592b6b1b4941c688978d /clang
parent871d4e1170a81597df13f7229554ee63c47c0456 (diff)
downloadbcm5719-llvm-19183acd1f180f644cecc49e4a9f6554834693b7.tar.gz
bcm5719-llvm-19183acd1f180f644cecc49e4a9f6554834693b7.zip
Add test case for <rdar://problem/8288645>. While this is fixed in trunk, we previously were getting the following assertion failure not too long ago:
Assertion failed: (getContainingDC(DC) == CurContext && "The next DeclContext should be lexically contained in the current one.") llvm-svn: 110740
Diffstat (limited to 'clang')
-rw-r--r--clang/test/Index/rdar-8288645-invalid-code.mm8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/Index/rdar-8288645-invalid-code.mm b/clang/test/Index/rdar-8288645-invalid-code.mm
new file mode 100644
index 00000000000..3405f0a9327
--- /dev/null
+++ b/clang/test/Index/rdar-8288645-invalid-code.mm
@@ -0,0 +1,8 @@
+// RUN: c-index-test -test-load-source all %s 2>&1 | FileCheck %s
+
+// This test case previously crashed Sema.
+
+extern "C" { @implementation Foo - (id)initWithBar:(Baz<WozBar>)pepper {
+
+// CHECK: warning: cannot find interface declaration for 'Foo'
+// CHECK: warning: '@end' is missing in implementation context
OpenPOWER on IntegriCloud