aboutsummaryrefslogtreecommitdiff
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
commit594ca4325cdf6f2c3e2ae584df069faafeaf145e (patch)
treeb8057fba3316a617778c5bd12f8b71e18c06adba
parentc59a44d01b0dae396da748cb2e76f2c3255899e0 (diff)
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.") git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110740 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Index/rdar-8288645-invalid-code.mm8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Index/rdar-8288645-invalid-code.mm b/test/Index/rdar-8288645-invalid-code.mm
new file mode 100644
index 0000000000..3405f0a932
--- /dev/null
+++ b/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