llvm/bolt/test/re-optimize.test

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
271 B
Plaintext
Raw Normal View History

# Check that we detect re-optimization attempt.
RUN: %clang %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.