brintos

brintos / llvm-project-archived public Read only

0
0
Text · 700 B · 4e8a48c Raw
21 lines · plain
1## This test shows that we include the tool name in error/warning messages.2 3# RUN: not llvm-objcopy %S/non-existent 2>&1 | FileCheck --check-prefix=ERR %s -DTOOL=objcopy -DMSG=%errc_ENOENT4# RUN: not llvm-strip %S/non-existent 2>&1 | FileCheck --check-prefix=ERR %s -DTOOL=strip -DMSG=%errc_ENOENT5 6# ERR: llvm-[[TOOL]]{{(\.exe)?}}: error: '{{.*}}': [[MSG]]7 8## Currently llvm-objcopy does not issue warnings, so it is not tested.9 10# RUN: yaml2obj %s -o %t11# RUN: llvm-strip %t %t 2>&1 | FileCheck --check-prefix=WARN %s12 13# WARN: llvm-strip{{(\.exe)?}}: warning: '{{.*}}' was already specified14 15--- !ELF16FileHeader:17  Class:   ELFCLASS6418  Data:    ELFDATA2LSB19  Type:    ET_DYN20  Machine: EM_RISCV21