llvm/bolt/test/no-relocs.test
Amir Ayupov da766cea56 [BOLT][TEST] Fix testing on macos
- Fix common (arch-independent) tests to explicitly target -linux triple.
- Override the triple inside arch-specific tests.
- Add cflags to common tests.
- Update individual tests.
- Expand pipe stderr `|&` shorthand.

Reviewed By: rafauler

Differential Revision: https://reviews.llvm.org/D125548
2022-05-13 13:03:47 -07:00

7 lines
266 B
Plaintext

# Verifies that input without relocations is rejected in relocs mode.
RUN: %clang %cflags %S/Inputs/icf-jump-tables.c -o %t
RUN: not llvm-bolt %t -o /dev/null -relocs 2>&1 | FileCheck %s
CHECK: BOLT-ERROR: relocations against code are missing from the input file.