From: Ted Kremenek Date: Tue, 10 Aug 2010 22:30:29 +0000 (+0000) Subject: Add test case for . While this is fixed in trunk, we previou... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=594ca4325cdf6f2c3e2ae584df069faafeaf145e;p=clang Add test case for . 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 --- 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)pepper { + +// CHECK: warning: cannot find interface declaration for 'Foo' +// CHECK: warning: '@end' is missing in implementation context