summaryrefslogtreecommitdiffstats
path: root/llvm/test/Object/nm-error.test
blob: 9b66e10ebeb1e64e79afefd1f099ce99f6f154ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
## Test that llvm-nm returns an error because of the unknown file type, but
## keeps processing subsequent files.

# RUN: yaml2obj %s > %t-i386
# RUN: touch %t
# RUN: not llvm-nm %t-i386 %t %t-i386 | FileCheck %s

# CHECK: U foo
# CHECK: U foo

--- !ELF
FileHeader:
  Class:   ELFCLASS32
  Data:    ELFDATA2LSB
  Type:    ET_REL
  Machine: EM_386
Symbols:
  - Name:    foo
    Binding: STB_GLOBAL
OpenPOWER on IntegriCloud