From 1a0ffd523a6d17d3d8aa85da76c01a5d93591097 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Fri, 29 Mar 2013 22:16:32 +0000 Subject: [PATCH] [libclang] Add test case for r178374. llvm-svn: 178378 --- clang/test/Index/modules-objc-categories.m | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 clang/test/Index/modules-objc-categories.m diff --git a/clang/test/Index/modules-objc-categories.m b/clang/test/Index/modules-objc-categories.m new file mode 100644 index 000000000000..4d0fd260d459 --- /dev/null +++ b/clang/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]