1*9880d681SAndroid Build Coastguard Worker// These test checks that llvm-objdump will not crash with malformed Archive 2*9880d681SAndroid Build Coastguard Worker// files. So the check line is not all that important but the bug fixes to 3*9880d681SAndroid Build Coastguard Worker// make sure llvm-objdump is robust is what matters. 4*9880d681SAndroid Build Coastguard Worker# RUN: not llvm-objdump -macho -archive-headers \ 5*9880d681SAndroid Build Coastguard Worker# RUN: %p/Inputs/libbogus1.a \ 6*9880d681SAndroid Build Coastguard Worker# RUN: 2>&1 | FileCheck -check-prefix=bogus1 %s 7*9880d681SAndroid Build Coastguard Worker 8*9880d681SAndroid Build Coastguard Worker# bogus1: Invalid data was encountered while parsing the file 9*9880d681SAndroid Build Coastguard Worker 10*9880d681SAndroid Build Coastguard Worker# RUN: not llvm-objdump -macho -archive-headers \ 11*9880d681SAndroid Build Coastguard Worker# RUN: %p/Inputs/libbogus2.a \ 12*9880d681SAndroid Build Coastguard Worker# RUN: 2>&1 | FileCheck -check-prefix=bogus2 %s 13*9880d681SAndroid Build Coastguard Worker 14*9880d681SAndroid Build Coastguard Worker# bogus2: LLVM ERROR: Invalid data was encountered while parsing the file 15*9880d681SAndroid Build Coastguard Worker 16*9880d681SAndroid Build Coastguard Worker# RUN: not llvm-objdump -macho -archive-headers \ 17*9880d681SAndroid Build Coastguard Worker# RUN: %p/Inputs/libbogus3.a \ 18*9880d681SAndroid Build Coastguard Worker# RUN: 2>&1 | FileCheck -check-prefix=bogus3 %s 19*9880d681SAndroid Build Coastguard Worker 20*9880d681SAndroid Build Coastguard Worker# bogus3: LLVM ERROR: Invalid data was encountered while parsing the file 21