1 # Check that we detect re-optimization attempt.
3 # This test uses the clang driver without target flags and will only succeed
4 # on Linux systems where the host triple matches the target.
7 RUN: %clang %cflags %S/Inputs/icf-jump-tables.c -o %t.exe
8 RUN: llvm-bolt %t.exe -o %t 2>&1 > %t.null
9 RUN: not llvm-bolt %t -o %t.bolt 2>&1 | FileCheck %s
11 CHECK: BOLT-ERROR: input file was processed by BOLT. Cannot re-optimize.