xref: /aosp_15_r20/external/llvm/test/Object/nm-error.test (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard WorkerTest that llvm-nm returns an error because of the unknown file type, but
2*9880d681SAndroid Build Coastguard Workerkeeps processing subsequent files.
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard WorkerRUN: touch %t
5*9880d681SAndroid Build Coastguard WorkerRUN: not llvm-nm %p/Inputs/trivial-object-test.elf-i386 %t \
6*9880d681SAndroid Build Coastguard WorkerRUN:             %p/Inputs/trivial-object-test.elf-i386 | \
7*9880d681SAndroid Build Coastguard WorkerRUN: FileCheck %s
8*9880d681SAndroid Build Coastguard Worker
9*9880d681SAndroid Build Coastguard WorkerCHECK:          U SomeOtherFunction
10*9880d681SAndroid Build Coastguard WorkerCHECK: 00000000 T main
11*9880d681SAndroid Build Coastguard WorkerCHECK:          U puts
12*9880d681SAndroid Build Coastguard Worker
13*9880d681SAndroid Build Coastguard WorkerCHECK:          U SomeOtherFunction
14*9880d681SAndroid Build Coastguard WorkerCHECK: 00000000 T main
15*9880d681SAndroid Build Coastguard WorkerCHECK:          U puts
16