llvm-project/bolt/test/re-optimize.test

8 lines
279 B
Plaintext

# Check that we detect re-optimization attempt.
RUN: %clang %cflags %S/Inputs/icf-jump-tables.c -o %t.exe
RUN: llvm-bolt %t.exe -o %t 2>&1 > /dev/null
RUN: not llvm-bolt %t -o %t.bolt 2>&1 | FileCheck %s
CHECK: BOLT-ERROR: input file was processed by BOLT. Cannot re-optimize.