Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / bolt / test / X86 / is-strip.s
blobdca7b03a61380f7ce21430d348f34495b45fdbe3
1 # This test checks whether a binary is stripped or not.
3 # RUN: %clang++ %cflags %p/Inputs/linenumber.cpp -o %t -Wl,-q
4 # RUN: llvm-bolt %t -o %t.out 2>&1 | FileCheck %s -check-prefix=CHECK-NOSTRIP
5 # RUN: cp %t %t.stripped
6 # RUN: llvm-strip -s %t.stripped
7 # RUN: not llvm-bolt %t.stripped -o /dev/null 2>&1 | FileCheck %s -check-prefix=CHECK-STRIP
8 # RUN: llvm-bolt %t.stripped -o %t.out --allow-stripped 2>&1 | FileCheck %s -check-prefix=CHECK-NOSTRIP
10 # CHECK-NOSTRIP-NOT: BOLT-ERROR: stripped binaries are not supported.
11 # CHECK-STRIP: BOLT-ERROR: stripped binaries are not supported.