summaryrefslogtreecommitdiff
path: root/bolt/test/shared-object.test
blob: 361f4ea94f2a515ee8c5dccfac8d2ebb075b71b9 (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