blob: 739f23cce5c5605da8d3e8ca9b837c9d6546abd2 [file]
# 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.