aboutsummaryrefslogtreecommitdiff
path: root/bolt/test/shared-object.test
blob: 06afff976e4a82b2f2bb5e62a1bc7cdf5541eac1 (plain)
1
2
3
4
5
6
7
8
9
10
## Test that llvm-bolt processes *.so without a failure

## This test uses the clang driver without target flags and will only succeed
## on Linux systems where the host triple matches the target.
REQUIRES: system-linux

RUN: %clang %cflags %S/Inputs/icf-jump-tables.c -o %t.so -shared -fPIC -Wl,--build-id
RUN: llvm-bolt %t.so -o %t | FileCheck %s

CHECK: patched build-id