xref: /llvm-project/llvm/test/Object/nm-error.test (revision 55c81d4282c5da0189711261a11537bc8a7fe85c)
16afc666eSGeorge Rimar## Test that llvm-nm returns an error because of the unknown file type, but
26afc666eSGeorge Rimar## keeps processing subsequent files.
38b82a4d3SRafael Espindola
4*55c81d42SFangrui Song# RUN: yaml2obj %s -o %t-i386
56afc666eSGeorge Rimar# RUN: touch %t
66afc666eSGeorge Rimar# RUN: not llvm-nm %t-i386 %t %t-i386 | FileCheck %s
78b82a4d3SRafael Espindola
86afc666eSGeorge Rimar# CHECK: U foo
96afc666eSGeorge Rimar# CHECK: U foo
108b82a4d3SRafael Espindola
116afc666eSGeorge Rimar--- !ELF
126afc666eSGeorge RimarFileHeader:
136afc666eSGeorge Rimar  Class:   ELFCLASS32
146afc666eSGeorge Rimar  Data:    ELFDATA2LSB
156afc666eSGeorge Rimar  Type:    ET_REL
166afc666eSGeorge Rimar  Machine: EM_386
176afc666eSGeorge RimarSymbols:
186afc666eSGeorge Rimar  - Name:    foo
196afc666eSGeorge Rimar    Binding: STB_GLOBAL
20