xref: /llvm-project/bolt/test/invalid-profile.test (revision 11791ae7b0b05b8bd8d806331ff51da618912cf8)
1## Check that llvm-bolt detects bad profile data and aborts
2
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.
5REQUIRES: system-linux
6
7RUN: %clang %S/Inputs/icf-jump-tables.c -o %t
8RUN: not llvm-bolt %t -o %t.bolt --data %t 2>&1 | FileCheck %s
9
10CHECK: no valid profile data found
11