xref: /minix3/external/bsd/llvm/dist/clang/test/Index/complete-modules.m (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc// Note: the run lines follow their respective tests, since line/column
2*f4a2713aSLionel Sambuc// matter in this test.
3*f4a2713aSLionel Sambuc
4*f4a2713aSLionel Sambuc@import LibA.Extensions;
5*f4a2713aSLionel Sambuc
6*f4a2713aSLionel Sambuc// RUN: rm -rf %t
7*f4a2713aSLionel Sambuc// RUN: c-index-test -code-completion-at=%s:4:9 -fmodules-cache-path=%t -fmodules -F %S/Inputs/Frameworks -I %S/Inputs/Headers %s | FileCheck -check-prefix=CHECK-TOP-LEVEL %s
8*f4a2713aSLionel Sambuc// CHECK-TOP-LEVEL: ModuleImport:{TypedText Framework} (50)
9*f4a2713aSLionel Sambuc// CHECK-TOP-LEVEL: ModuleImport:{TypedText LibA} (50)
10*f4a2713aSLionel Sambuc// CHECK-TOP-LEVEL: ModuleImport:{TypedText nested} (50)
11*f4a2713aSLionel Sambuc
12*f4a2713aSLionel Sambuc// RUN: c-index-test -code-completion-at=%s:4:14 -fmodules-cache-path=%t -fmodules -F %S/Inputs/Frameworks -I %S/Inputs/Headers %s | FileCheck -check-prefix=CHECK-LIBA %s
13*f4a2713aSLionel Sambuc// CHECK-LIBA: ModuleImport:{TypedText Extensions} (50)
14*f4a2713aSLionel Sambuc
15*f4a2713aSLionel Sambuc// RUN: c-index-test -code-completion-at=%s:4:1 -fmodules-cache-path=%t -fmodules -F %S/Inputs/Frameworks -I %S/Inputs/Headers %s | FileCheck -check-prefix=CHECK-TOP %s
16*f4a2713aSLionel Sambuc// CHECK-TOP: NotImplemented:{TypedText @import}{HorizontalSpace  }{Placeholder module} (40)
17*f4a2713aSLionel Sambuc
18