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

RUN: touch %t
RUN: not llvm-nm %p/Inputs/trivial-object-test.elf-i386 %t \
RUN:             %p/Inputs/trivial-object-test.elf-i386 | \
RUN: FileCheck %s

CHECK:          U SomeOtherFunction
CHECK: 00000000 T main
CHECK:          U puts

CHECK:          U SomeOtherFunction
CHECK: 00000000 T main
CHECK:          U puts