2021-10-07 05:25:29 +08:00
|
|
|
# Check that llvm-bolt detects bad profile data and aborts
|
|
|
|
|
2022-07-12 08:58:32 +08:00
|
|
|
# This test uses the clang driver without target flags and will only succeed
|
|
|
|
# on Linux systems where the host triple matches the target.
|
|
|
|
REQUIRES: system-linux
|
|
|
|
|
2021-10-07 05:25:29 +08:00
|
|
|
RUN: %clang %S/Inputs/icf-jump-tables.c -o %t
|
2022-06-11 05:10:58 +08:00
|
|
|
RUN: not llvm-bolt %t -o %t.bolt --data %t 2>&1 | FileCheck %s
|
2021-10-07 05:25:29 +08:00
|
|
|
|
|
|
|
CHECK: no valid profile data found
|