llvm-project
12 строк · 534.0 Байт
1## Check that llvm-bolt rejects input that is not a valid ELF executable
2## bzip2.debuginfo is the result of running "objcopy --only-keep-debug".
3
4## This test uses the clang driver without target flags and will only succeed
5## on Linux systems where the host triple matches the target.
6REQUIRES: system-linux
7
8RUN: %clang %cflags %S/Inputs/icf-jump-tables.c -g -o %t
9RUN: llvm-objcopy --only-keep-debug %t %t.debuginfo
10RUN: not llvm-bolt %t.debuginfo -o %t.null 2>&1 | FileCheck %s
11
12CHECK: input binary is not a valid ELF executable
13