12 lines · plain
1## This test checks whether a binary is stripped or not.2 3# RUN: %clang++ %cflags %p/Inputs/linenumber.cpp -o %t -Wl,-q4# RUN: llvm-bolt %t -o %t.out 2>&1 | FileCheck %s -check-prefix=CHECK-NOSTRIP5# RUN: cp %t %t.stripped6# RUN: llvm-strip -s %t.stripped7# RUN: not llvm-bolt %t.stripped -o %t.null 2>&1 | FileCheck %s -check-prefix=CHECK-STRIP8# RUN: llvm-bolt %t.stripped -o %t.out --allow-stripped 2>&1 | FileCheck %s -check-prefix=CHECK-NOSTRIP9 10# CHECK-NOSTRIP-NOT: BOLT-ERROR: stripped binaries are not supported.11# CHECK-STRIP: BOLT-ERROR: stripped binaries are not supported.12