40 lines · cpp
1// Test C++ -gmodules debug info in the PCMs with local submodule visibility.2// REQUIRES: asserts3// RUN: rm -rf %t4// 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.ll10// RUN: cat %t-mod.ll | FileCheck %s11 12// RUN: rm -rf %t13// 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.ll20// RUN: cat %t-mod.ll | FileCheck %s21 22// ADT23// CHECK: @__clang_ast =24 25// B26// CHECK: @__clang_ast =27 28// This type isn't anchored anywhere, expect a full definition.29// CHECK: !DICompositeType({{.*}}, name: "AlignedCharArray<4U, 16U>",30// CHECK-SAME: elements:31 32// C33// CHECK: @__clang_ast =34 35// Here, too.36// CHECK: !DICompositeType({{.*}}, name: "AlignedCharArray<4U, 16U>",37// CHECK-SAME: elements:38 39#include <B/B.h>40