brintos

brintos / llvm-project-archived public Read only

0
0
Text · 808 B · 2db9033 Raw
26 lines · plain
1## Checks that llvm-strip continues to strip objects after encountering a bad2## one while emitting an error for each bad one.3 4# RUN: echo "bad" > %t15# RUN: yaml2obj %s -o %t26# RUN: cp %t1 %t37# RUN: not llvm-strip --strip-sections %t1 %t2 %t3 2>&1 | FileCheck %s --check-prefix=ERROR -DFILE1=%t1 -DFILE3=%t3 --implicit-check-not=error:8 9# ERROR: error: '[[FILE1]]': The file was not recognized as a valid object file10# ERROR-NEXT: error: '[[FILE3]]': The file was not recognized as a valid object file11 12# RUN: llvm-readobj --file-header %t2 | FileCheck %s --check-prefix=NUMSECTIONS13 14# NUMSECTIONS: SectionHeaderCount: 015 16!ELF17FileHeader:18  Class: ELFCLASS6419  Data:  ELFDATA2LSB20  Type:  ET_EXEC21  Machine: EM_X86_6422Sections:23  - Name:    .debugGlobal24    Type:    SHT_PROGBITS25    Content: "00000000"26