1 # Check that the .bolt_info section is generated properly.
3 # This test uses the clang driver without target flags and will only succeed
4 # on Linux systems where the host triple matches the target.
7 RUN: %clang %cflags %S/Inputs/icf-jump-tables.c -o %t
8 RUN: llvm-bolt %t -o %t.bolt && \
9 RUN: llvm-objdump -s -j .note.bolt_info %t.bolt | grep -v "file format" | \
10 RUN: cut -c 44- | tr -d '\n' | FileCheck %s
12 CHECK: BOLT revision: {{.*}}, command line: {{.*}}llvm-bolt {{.*}}/bolt-info.test.tmp -o {{.*}}/bolt-info.test.tmp.bolt