[cfe-commits] r110740 - /cfe/trunk/test/Index/rdar-8288645-invalid-code.mm

Ted Kremenek kremenek at apple.com
Tue Aug 10 15:30:29 PDT 2010


Author: kremenek
Date: Tue Aug 10 17:30:29 2010
New Revision: 110740

URL: http://llvm.org/viewvc/llvm-project?rev=110740&view=rev
Log:
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.")

Added:
    cfe/trunk/test/Index/rdar-8288645-invalid-code.mm

Added: cfe/trunk/test/Index/rdar-8288645-invalid-code.mm
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Index/rdar-8288645-invalid-code.mm?rev=110740&view=auto
==============================================================================
--- cfe/trunk/test/Index/rdar-8288645-invalid-code.mm (added)
+++ cfe/trunk/test/Index/rdar-8288645-invalid-code.mm Tue Aug 10 17:30:29 2010
@@ -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





More information about the cfe-commits mailing list