summaryrefslogtreecommitdiff
path: root/clang/test/Index/rdar-8288645-invalid-code.mm
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Index/rdar-8288645-invalid-code.mm')
-rw-r--r--clang/test/Index/rdar-8288645-invalid-code.mm7
1 files changed, 7 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 0000000..ec45641
--- /dev/null
+++ b/clang/test/Index/rdar-8288645-invalid-code.mm
@@ -0,0 +1,7 @@
+// 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'