summaryrefslogtreecommitdiffstats
path: root/test/Index/annotate-module.m
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-04-26 22:47:49 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-04-26 22:47:49 +0000
commite858e667c14ce4a9df5a4bbae770a0a3a3c8723e (patch)
treec90137a5944cf218d836524ad4b99018c5009269 /test/Index/annotate-module.m
parent888d34566a4de6097896863a2f6660ed1537ddb9 (diff)
[libclang] Introduce clang_Module_getASTFile function that returns the module file where a module object came from.
rdar://13743084 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180643 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Index/annotate-module.m')
-rw-r--r--test/Index/annotate-module.m7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Index/annotate-module.m b/test/Index/annotate-module.m
index 33ca3f8324..55e21d235e 100644
--- a/test/Index/annotate-module.m
+++ b/test/Index/annotate-module.m
@@ -40,3 +40,10 @@ int glob;
// CHECK-MOD-NEXT: Punctuation: "*" [2:5 - 2:6] VarDecl=Module_Sub:2:6
// CHECK-MOD-NEXT: Identifier: "Module_Sub" [2:6 - 2:16] VarDecl=Module_Sub:2:6
// CHECK-MOD-NEXT: Punctuation: ";" [2:16 - 2:17]
+
+// RUN: c-index-test -cursor-at=%s:3:11 %s -fmodules-cache-path=%t.cache -fmodules -F %S/../Modules/Inputs \
+// RUN: | FileCheck %s -check-prefix=CHECK-CURSOR
+
+// CHECK-CURSOR: 3:1 ModuleImport=DependsOnModule:3:1 (Definition) Extent=[3:1 - 3:24] Spelling=DependsOnModule ([3:9 - 3:24]) ModuleName=DependsOnModule ({{.*}}DependsOnModule.pcm) Headers(2):
+// CHECK-CURSOR-NEXT: {{.*}}other.h
+// CHECK-CURSOR-NEXT: {{.*}}DependsOnModule.h