diff options
Diffstat (limited to 'test/Index/Core/index-with-module.m')
-rw-r--r-- | test/Index/Core/index-with-module.m | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/Index/Core/index-with-module.m b/test/Index/Core/index-with-module.m index c83de63701e1..ca89c2e1de38 100644 --- a/test/Index/Core/index-with-module.m +++ b/test/Index/Core/index-with-module.m @@ -1,11 +1,17 @@ // RUN: rm -rf %t.mcp // RUN: c-index-test core -print-source-symbols -dump-imported-module-files -- %s -I %S/Inputs/module -fmodules -fmodules-cache-path=%t.mcp | FileCheck %s -// CHECK: [[@LINE+1]]:9 | module/C | ModA | Decl | +// CHECK: [[@LINE+1]]:9 | module/C | ModA | [[ModA_USR:c:@M@ModA]] | Decl | @import ModA; -// CHECK: [[@LINE+1]]:1 | module/C | ModA | Decl,Impl | +// CHECK: [[@LINE+1]]:1 | module/C | ModA | [[ModA_USR]] | Decl,Impl | #include "ModA.h" +@import ModA.SubModA.SubSubModA; +// CHECK: [[@LINE-1]]:9 | module/C | ModA | [[ModA_USR]] | Ref | +// CHECK: [[@LINE-2]]:14 | module/C | ModA.SubModA | c:@M@ModA@M@SubModA | Ref | +// CHECK: [[@LINE-3]]:22 | module/C | ModA.SubModA.SubSubModA | [[SubSubModA_USR:c:@M@ModA@M@SubModA@M@SubSubModA]] | Decl | +#include "SubSubModA.h" // CHECK: [[@LINE]]:1 | module/C | ModA.SubModA.SubSubModA | [[SubSubModA_USR]] | Decl,Impl | + void foo() { // CHECK: [[@LINE+1]]:3 | function/C | ModA_func | c:@F@ModA_func | {{.*}} | Ref,Call,RelCall,RelCont | rel: 1 ModA_func(); |