1 | // REQUIRES: shell |
2 | @import ModuleNeedsVFS; |
3 | |
4 | void foo() { |
5 | module_needs_vfs(); |
6 | base_module_needs_vfs(); |
7 | } |
8 | |
9 | // RUN: rm -rf %t.cache |
10 | // RUN: sed -e "s:INPUT_DIR:%S/Inputs:g" -e "s:OUT_DIR:%t:g" %S/Inputs/vfsoverlay.yaml > %t.yaml |
11 | // RUN: c-index-test -index-file %s -fmodules-cache-path=%t.cache -fmodules -F %t -I %t \ |
12 | // RUN: -ivfsoverlay %t.yaml -Xclang -fdisable-module-hash | FileCheck %s |
13 | |
14 | // CHECK: [importedASTFile]: {{.*}}ModuleNeedsVFS.pcm | loc: 2:1 | name: "ModuleNeedsVFS" | isImplicit: 0 |
15 | // CHECK: [indexEntityReference]: kind: function | name: module_needs_vfs |
16 | // CHECK: [indexEntityReference]: kind: function | name: base_module_needs_vfs |
17 | |
18 | // RUN: c-index-test -index-tu %t.cache/ModuleNeedsVFS.pcm | FileCheck %s -check-prefix=CHECK-MOD |
19 | |
20 | // CHECK-MOD: [ppIncludedFile]: {{.*}}module_needs_vfs.h |
21 | // CHECK-MOD: [importedASTFile]: {{.*}}BaseModuleNeedsVFS.pcm |
22 | // CHECK-MOD: [indexEntityReference]: kind: function | name: base_module_needs_vfs |
23 | |
24 | // RUN: c-index-test -index-tu %t.cache/BaseModuleNeedsVFS.pcm | FileCheck %s -check-prefix=CHECK-MOD2 |
25 | |
26 | // CHECK-MOD2: [ppIncludedFile]: {{.*}}base_module_needs_vfs.h |
27 | |