Files
llvm-project/clang/test/Modules/lsv-debuginfo.cpp
Jan Svoboda 62d7aa0b26 [clang] Disable some module tests on AIX (#193008)
PR https://github.com/llvm/llvm-project/pull/190062 makes two module
tests fail on AIX. Disable them on that platform until we get to the
bottom of it.
2026-04-20 10:22:23 -07:00

41 lines
1.4 KiB
C++

// Test C++ -gmodules debug info in the PCMs with local submodule visibility.
// UNSUPPORTED: target={{.*}}-aix{{.*}}
// REQUIRES: asserts
// RUN: rm -rf %t
// RUN: %clang_cc1 -triple %itanium_abi_triple -std=c++14 \
// RUN: -fmodules-local-submodule-visibility %s \
// RUN: -dwarf-ext-refs -fmodule-format=obj -debug-info-kind=standalone \
// RUN: -dwarf-version=4 -fmodules -fimplicit-module-maps \
// RUN: -fmodules-cache-path="%t" -o %t.ll -I%S/Inputs/lsv-debuginfo \
// RUN: -mllvm -debug-only=pchcontainer &>%t-mod.ll
// RUN: cat %t-mod.ll | FileCheck %s
// RUN: rm -rf %t
// RUN: %clang_cc1 -triple %itanium_abi_triple -std=c++14 \
// RUN: -fmodules-local-submodule-visibility %s \
// RUN: -dwarf-ext-refs -fmodule-format=obj -debug-info-kind=standalone \
// RUN: -dwarf-version=4 -fmodules -fimplicit-module-maps \
// RUN: -fmodules-cache-path="%t" -o %t.ll -I%S/Inputs/lsv-debuginfo \
// RUN: -DWITH_NAMESPACE \
// RUN: -mllvm -debug-only=pchcontainer &>%t-mod.ll
// RUN: cat %t-mod.ll | FileCheck %s
// ADT
// CHECK: @__clang_ast =
// B
// CHECK: @__clang_ast =
// This type isn't anchored anywhere, expect a full definition.
// CHECK: !DICompositeType({{.*}}, name: "AlignedCharArray<4U, 16U>",
// CHECK-SAME: elements:
// C
// CHECK: @__clang_ast =
// Here, too.
// CHECK: !DICompositeType({{.*}}, name: "AlignedCharArray<4U, 16U>",
// CHECK-SAME: elements:
#include <B/B.h>