1// REQUIRES: binutils_lto
2
3// RUN: %clang_pgogen=%t.profraw -fuse-ld=bfd -flto %s -o %t
4// RUN: %run %t
5// RUN: llvm-profdata merge %t.profraw -o %t.profdata
6// RUN: llvm-profdata show %t.profdata | FileCheck %s
7
8/// Test that we work around https://sourceware.org/bugzilla/show_bug.cgi?id=26262
9/// (as of GNU ld 2.35) which happens when trying to generate IR profile with
10/// BFD linker + LLVMgold.so
11
12// CHECK: Instrumentation level: IR
13int main() { return 0; }
14