12122ff64SGeorge RimarREQUIRES: zlib 22122ff64SGeorge Rimar 32122ff64SGeorge Rimar// dwarfdump-decompression-error.elf-x86-64 is prepared using following 42122ff64SGeorge Rimar// source code and invocation: 52122ff64SGeorge Rimar// test.cpp: 62122ff64SGeorge Rimar// int main() { return 0; } 72122ff64SGeorge Rimar// 82122ff64SGeorge Rimar// gcc test.cpp -o out -g -Wl,--compress-debug-sections,zlib 92122ff64SGeorge Rimar// 102122ff64SGeorge Rimar// After that result object was modified manually. One random byte in compressed 112122ff64SGeorge Rimar// content of .debug_info section was changed to 0xff. That breaks normal 122122ff64SGeorge Rimar// decompression flow in runtime. 13*e0fd87ccSDavid BlaikieRUN: not llvm-dwarfdump %p/Inputs/dwarfdump-decompression-error.elf-x86-64 2>&1 | FileCheck %s 142122ff64SGeorge Rimar 152122ff64SGeorge RimarCHECK: error: failed to decompress '.debug_info', zlib error: Z_DATA_ERROR 16