summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/Core/index-with-module.m
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Index/Core/index-with-module.m')
-rw-r--r--clang/test/Index/Core/index-with-module.m12
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/Index/Core/index-with-module.m b/clang/test/Index/Core/index-with-module.m
new file mode 100644
index 00000000000..646a48a2c93
--- /dev/null
+++ b/clang/test/Index/Core/index-with-module.m
@@ -0,0 +1,12 @@
+// 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
+
+// CHECK: [[@LINE+1]]:9 | module/C | ModA | Ref |
+@import ModA;
+// CHECK: [[@LINE+1]]:1 | module/C | ModA | Ref,Impl |
+#include "ModA.h"
+
+void foo() {
+ // CHECK: [[@LINE+1]]:3 | function/C | ModA_func | c:@F@ModA_func | {{.*}} | Ref,Call,RelCall | rel: 1
+ ModA_func();
+} \ No newline at end of file
OpenPOWER on IntegriCloud