xref: /llvm-project/llvm/test/Object/nm-error.test (revision 55c81d4282c5da0189711261a11537bc8a7fe85c)
1## Test that llvm-nm returns an error because of the unknown file type, but
2## keeps processing subsequent files.
3
4# RUN: yaml2obj %s -o %t-i386
5# RUN: touch %t
6# RUN: not llvm-nm %t-i386 %t %t-i386 | FileCheck %s
7
8# CHECK: U foo
9# CHECK: U foo
10
11--- !ELF
12FileHeader:
13  Class:   ELFCLASS32
14  Data:    ELFDATA2LSB
15  Type:    ET_REL
16  Machine: EM_386
17Symbols:
18  - Name:    foo
19    Binding: STB_GLOBAL
20