1 // Test C++ -gmodules debug info in the PCMs with local submodule visibility.
4 // RUN: %clang_cc1 -triple %itanium_abi_triple -std=c++14 \
5 // RUN: -fmodules-local-submodule-visibility %s \
6 // RUN: -dwarf-ext-refs -fmodule-format=obj -debug-info-kind=standalone \
7 // RUN: -dwarf-version=4 -fmodules -fimplicit-module-maps \
8 // RUN: -fmodules-cache-path="%t" -o %t.ll -I%S/Inputs/lsv-debuginfo \
9 // RUN: -mllvm -debug-only=pchcontainer &>%t-mod.ll
10 // RUN: cat %t-mod.ll | FileCheck %s
13 // RUN: %clang_cc1 -triple %itanium_abi_triple -std=c++14 \
14 // RUN: -fmodules-local-submodule-visibility %s \
15 // RUN: -dwarf-ext-refs -fmodule-format=obj -debug-info-kind=standalone \
16 // RUN: -dwarf-version=4 -fmodules -fimplicit-module-maps \
17 // RUN: -fmodules-cache-path="%t" -o %t.ll -I%S/Inputs/lsv-debuginfo \
18 // RUN: -DWITH_NAMESPACE \
19 // RUN: -mllvm -debug-only=pchcontainer &>%t-mod.ll
20 // RUN: cat %t-mod.ll | FileCheck %s
23 // CHECK: @__clang_ast =
26 // CHECK: @__clang_ast =
28 // This type isn't anchored anywhere, expect a full definition.
29 // CHECK: !DICompositeType({{.*}}, name: "AlignedCharArray<4U, 16U>",
30 // CHECK-SAME: elements:
33 // CHECK: @__clang_ast =
36 // CHECK: !DICompositeType({{.*}}, name: "AlignedCharArray<4U, 16U>",
37 // CHECK-SAME: elements: