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