1 // REQUIRES: lld-available
2 /// With lld --gc-sections we can ensure discarded[01] and their profc/profd
3 /// variables are discarded.
4 
5 // RUN: %clang_profgen -fcoverage-mapping -ffunction-sections -fuse-ld=lld -Wl,--gc-sections %S/coverage-linkage.cpp -o %t
6 // RUN: llvm-nm %t | FileCheck %s
7 
8 // CHECK-NOT: discarded{{.*}}
9