brintos

brintos / llvm-project-archived public Read only

0
0
Text · 836 B · 9381e8f Raw
28 lines · plain
1## Test llvm-strip using the same input file more than once.2## When using stdin ('-') more than once llvm-strip should give an error3## while a file more than once should be simply a warning.4 5# RUN: yaml2obj %s -o %t6 7# RUN: not llvm-strip - - < %t 2>&1 | FileCheck -check-prefix=ERR %s8# RUN: not llvm-strip - %t - < %t 2>&1 | FileCheck -check-prefix=ERR %s9 10# ERR: error: cannot specify '-' as an input file more than once11 12# RUN: cp %t %t213# RUN: llvm-strip %t %t %t %t2 %t2 2>&1 | FileCheck -check-prefix=WARN %s -DFILE=%t -DFILE2=%t214 15# WARN:      warning: '[[FILE]]' was already specified16# WARN-NEXT: warning: '[[FILE2]]' was already specified17 18--- !ELF19FileHeader:20  Class:   ELFCLASS6421  Data:    ELFDATA2LSB22  Type:    ET_REL23  Machine: EM_X86_6424Sections:25  - Name:  .alloc26    Type:  SHT_PROGBITS27    Flags: [ SHF_ALLOC ]28