summaryrefslogtreecommitdiff
path: root/clang/test/Index/invalid-code-rdar10451854.m
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Index/invalid-code-rdar10451854.m')
-rw-r--r--clang/test/Index/invalid-code-rdar10451854.m15
1 files changed, 15 insertions, 0 deletions
diff --git a/clang/test/Index/invalid-code-rdar10451854.m b/clang/test/Index/invalid-code-rdar10451854.m
new file mode 100644
index 0000000..1562671
--- /dev/null
+++ b/clang/test/Index/invalid-code-rdar10451854.m
@@ -0,0 +1,15 @@
+struct {
+
+@implementation Foo
+
+- (void)finalize {
+ NSLog(@"bar");
+}
+
+- (NSArray *)graphics {
+}
+
+@end
+
+// Test that we don't crash
+// RUN: c-index-test -test-load-source-reparse 3 local %s