summaryrefslogtreecommitdiffstats
path: root/test/Index/modules-objc-categories.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/Index/modules-objc-categories.m')
-rw-r--r--test/Index/modules-objc-categories.m10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Index/modules-objc-categories.m b/test/Index/modules-objc-categories.m
new file mode 100644
index 0000000..4d0fd26
--- /dev/null
+++ b/test/Index/modules-objc-categories.m
@@ -0,0 +1,10 @@
+@import category_top;
+@import category_left;
+
+@interface Sub : Foo
+- (void)left_sub;
+@end
+
+// RUN: rm -rf %t
+// RUN: c-index-test -test-load-source local -fmodules -fmodules-cache-path=%t %s -I%S/../Modules/Inputs | FileCheck %s
+// CHECK: modules-objc-categories.m:5:9: ObjCInstanceMethodDecl=left_sub:5:9 [Overrides @2:9]
OpenPOWER on IntegriCloud