1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00
llvm-mirror/test/Object/nm-error.test
George Rimar 25d3a37aab [llvm\test\Object] - An initial step to cleanup the test cases.
This patch removes trivial-object-test.elf-i386,
trivial-object-test.elf-x86-64 and trivial-object-test2.elf-x86-64
precompiled objects from test/Object/Inputs folder.

I adjusted the existent test cases to use YAML instead.

Differential revision: https://reviews.llvm.org/D64206

llvm-svn: 365348
2019-07-08 16:53:39 +00:00

20 lines
397 B
Plaintext

## 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