blob: 146b88713f87cade84d06f060299e987cd8427b8 [file] [log] [blame]
Rafael Espindola40d40dd2013-07-03 15:46:03 +00001Test that llvm-nm returns an error because of the unknown file type, but
2keeps processing subsequent files.
3
4Note: We use a temporary file since the tests don't run with pipefail.
5
6RUN: touch %t
7RUN: not llvm-nm %p/Inputs/trivial-object-test.elf-i386 %t \
8RUN: %p/Inputs/trivial-object-test.elf-i386 > %t.log
9RUN: FileCheck %s < %t.log
10
11CHECK: U SomeOtherFunction
12CHECK: 00000000 T main
13CHECK: U puts
14
15CHECK: U SomeOtherFunction
16CHECK: 00000000 T main
17CHECK: U puts