Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / compiler-rt / test / profile / Linux / coverage-linkage-lld.cpp
blobfc7a693ee9b027e2d092f8a8389acc3ee3db43f9
1 // REQUIRES: lld-available
3 // FIXME: Investigate and fix.
4 // XFAIL: powerpc64-target-arch
6 /// With lld --gc-sections we can ensure discarded[01] and their profc/profd
7 /// variables are discarded.
9 // RUN: %clang_profgen -fcoverage-mapping -ffunction-sections -fuse-ld=lld -Wl,--gc-sections %S/coverage-linkage.cpp -o %t
10 // RUN: llvm-nm %t | FileCheck %s
12 // CHECK-NOT: discarded{{.*}}