blob: 549633867c759fc176daee5725b4f57ae972841d [file] [log] [blame]
// REQUIRES: lld-available
/// 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{{.*}}