]> granicus.if.org Git - clang/commitdiff
Add test case for <rdar://problem/8288645>. While this is fixed in trunk, we previou...
authorTed Kremenek <kremenek@apple.com>
Tue, 10 Aug 2010 22:30:29 +0000 (22:30 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 10 Aug 2010 22:30:29 +0000 (22:30 +0000)
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

test/Index/rdar-8288645-invalid-code.mm [new file with mode: 0644]

diff --git a/test/Index/rdar-8288645-invalid-code.mm b/test/Index/rdar-8288645-invalid-code.mm
new file mode 100644 (file)
index 0000000..3405f0a
--- /dev/null
@@ -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