bolt/deps/llvm-18.1.8/compiler-rt/test/profile/Linux/coverage-linkage-lld.cpp

13 lines
387 B
C++
Raw Normal View History

2025-02-14 19:21:04 +01:00
// REQUIRES: lld-available
// FIXME: Investigate and fix.
// XFAIL: powerpc64-target-arch
/// With lld --gc-sections we can ensure discarded[01] and their profc/profd
/// variables are discarded.
// RUN: %clang_profgen -fcoverage-mapping -ffunction-sections -fuse-ld=lld -Wl,--gc-sections %S/coverage-linkage.cpp -o %t
// RUN: llvm-nm %t | FileCheck %s
// CHECK-NOT: discarded{{.*}}