brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 8361448 Raw
38 lines · plain
1#import "import_moduleA.h"2static const int FROM_IMPL = 2;3 4void test0(void) {5  int x = 6}7// The lines above this point are sensitive to line/column changes.8 9// ===--- None10// RUN: c-index-test -code-completion-at=%s:5:11 %s -I %S/Inputs | FileCheck %s11 12// ===--- Modules13// RUN: rm -rf %t && mkdir %t14// RUN: c-index-test -code-completion-at=%s:5:11 %s -I %S/Inputs -fmodules -fmodules-cache-path=%t/mcp | FileCheck %s15 16// ===--- PCH17// RUN: rm -rf %t && mkdir %t18// RUN: c-index-test -write-pch %t/import_moduleA.pch -x objective-c-header %S/Inputs/import_moduleA.h -I %S/Inputs19// RUN: c-index-test -code-completion-at=%s:5:11 %s -include-pch %t/import_moduleA.pch -I %S/Inputs | FileCheck %s20 21// ===--- PCH + Modules22// RUN: rm -rf %t && mkdir %t23// RUN: c-index-test -write-pch %t/import_moduleA.pch -x objective-c-header %S/Inputs/import_moduleA.h -fmodules -fmodules-cache-path=%t/mcp -I %S/Inputs24// RUN: c-index-test -code-completion-at=%s:5:11 %s -include-pch %t/import_moduleA.pch -I %S/Inputs -fmodules -fmodules-cache-path=%t/mcp | FileCheck %s25 26// ===--- Preamble27// RUN: rm -rf %t && mkdir %t28// RUN: env CINDEXTEST_EDITING=1 c-index-test -code-completion-at=%s:5:11 %s -I %S/Inputs | FileCheck %s29 30// ===--- Preamble + Modules31// RUN: rm -rf %t32// RUN: env CINDEXTEST_EDITING=1 c-index-test -code-completion-at=%s:5:11 %s -I %S/Inputs -fmodules -fmodules-cache-path=%t/mcp | FileCheck %s33 34 35// CHECK: FROM_HEADER36// CHECK: FROM_IMPL37// CHECK: FROM_MODULE_A38