2016-02-29 15:56:07 +08:00
|
|
|
// RUN: rm -rf %t.mcp
|
|
|
|
// RUN: c-index-test core -print-source-symbols -- %s -I %S/Inputs/module -fmodules -fmodules-cache-path=%t.mcp | FileCheck %s
|
|
|
|
|
2016-07-15 02:51:55 +08:00
|
|
|
// CHECK: [[@LINE+1]]:9 | module/C | ModA | Decl |
|
2016-02-29 15:56:07 +08:00
|
|
|
@import ModA;
|
2016-07-15 02:51:55 +08:00
|
|
|
// CHECK: [[@LINE+1]]:1 | module/C | ModA | Decl,Impl |
|
2016-02-29 15:56:07 +08:00
|
|
|
#include "ModA.h"
|
|
|
|
|
|
|
|
void foo() {
|
|
|
|
// CHECK: [[@LINE+1]]:3 | function/C | ModA_func | c:@F@ModA_func | {{.*}} | Ref,Call,RelCall | rel: 1
|
|
|
|
ModA_func();
|
2016-07-15 02:51:55 +08:00
|
|
|
}
|