1*9880d681SAndroid Build Coastguard WorkerRUN: llvm-dwp %p/../Inputs/compress/a.dwo -o %t 2*9880d681SAndroid Build Coastguard WorkerRUN: llvm-dwarfdump %t | FileCheck %s 3*9880d681SAndroid Build Coastguard Worker 4*9880d681SAndroid Build Coastguard WorkerREQUIRES: zlib 5*9880d681SAndroid Build Coastguard Worker 6*9880d681SAndroid Build Coastguard WorkerSimple test built from this input which produces DWARF long enough to be compressed in the .[z]debug_info section: 7*9880d681SAndroid Build Coastguard Worker 8*9880d681SAndroid Build Coastguard Worker void f(int a, int b, int c, int d) { 9*9880d681SAndroid Build Coastguard Worker } 10*9880d681SAndroid Build Coastguard Worker 11*9880d681SAndroid Build Coastguard WorkerSince the compression is pretty orthogonal, we're not trying to test that the 12*9880d681SAndroid Build Coastguard Workercompression library functioned correctly, just that dwp used it to decompress 13*9880d681SAndroid Build Coastguard Workerthe section - so test a few simple features and be done with it. 14*9880d681SAndroid Build Coastguard Worker 15*9880d681SAndroid Build Coastguard WorkerCHECK: .debug_info.dwo contents: 16*9880d681SAndroid Build Coastguard WorkerCHECK: Compile Unit: 17*9880d681SAndroid Build Coastguard WorkerCHECK: DW_TAG_compile_unit 18*9880d681SAndroid Build Coastguard WorkerCHECK: DW_TAG_subprogram 19*9880d681SAndroid Build Coastguard WorkerCHECK: DW_TAG_formal_parameter 20