brintos

brintos / llvm-project-archived public Read only

0
0
Text · 562 B · 714e451 Raw
12 lines · cpp
1// REQUIRES: lld-available2/// With lld -opt:ref we can ensure discarded[01] and their profc/profd3/// variables are discarded.4 5// RUN: %clang_profgen -fcoverage-mapping -ffunction-sections -fuse-ld=lld -Wl,-debug:symtab,-opt:noref %S/coverage-linkage.cpp -o %t6// RUN: llvm-nm %t | FileCheck %s --check-prefix=NOGC7// RUN: %clang_profgen -fcoverage-mapping -ffunction-sections -fuse-ld=lld -Wl,-debug:symtab,-opt:ref %S/coverage-linkage.cpp -o %t8// RUN: llvm-nm %t | FileCheck %s --check-prefix=GC9 10// NOGC:   T ?discarded{{.*}}11// GC-NOT: T ?discarded{{.*}}12