You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
465 B
14 lines
465 B
7 months ago
|
// REQUIRES: binutils_lto
|
||
|
|
||
|
// RUN: %clang_pgogen=%t.profraw -fuse-ld=bfd -flto %s -o %t
|
||
|
// RUN: %run %t
|
||
|
// RUN: llvm-profdata merge %t.profraw -o %t.profdata
|
||
|
// RUN: llvm-profdata show %t.profdata | FileCheck %s
|
||
|
|
||
|
/// Test that we work around https://sourceware.org/bugzilla/show_bug.cgi?id=26262
|
||
|
/// (as of GNU ld 2.35) which happens when trying to generate IR profile with
|
||
|
/// BFD linker + LLVMgold.so
|
||
|
|
||
|
// CHECK: Instrumentation level: IR
|
||
|
int main() { return 0; }
|