diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-05-08 17:12:57 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-05-08 17:12:57 +0000 |
| commit | c46e6a5940c50058e00c0c5f9123fd82e338d29a (patch) | |
| tree | 89a719d723035c54a190b1f81d329834f1f93336 /test/DebugInfo/dwarfdump-decompression-error.test | |
| parent | 148779df305667b6942fee7e758fdf81a6498f38 (diff) | |
Notes
Diffstat (limited to 'test/DebugInfo/dwarfdump-decompression-error.test')
| -rw-r--r-- | test/DebugInfo/dwarfdump-decompression-error.test | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/DebugInfo/dwarfdump-decompression-error.test b/test/DebugInfo/dwarfdump-decompression-error.test new file mode 100644 index 0000000000000..184833164dc9a --- /dev/null +++ b/test/DebugInfo/dwarfdump-decompression-error.test @@ -0,0 +1,15 @@ +REQUIRES: zlib + +// dwarfdump-decompression-error.elf-x86-64 is prepared using following +// source code and invocation: +// test.cpp: +// int main() { return 0; } +// +// gcc test.cpp -o out -g -Wl,--compress-debug-sections,zlib +// +// After that result object was modified manually. One random byte in compressed +// content of .debug_info section was changed to 0xff. That breaks normal +// decompression flow in runtime. +RUN: llvm-dwarfdump %p/Inputs/dwarfdump-decompression-error.elf-x86-64 2>&1 | FileCheck %s + +CHECK: error: failed to decompress '.debug_info', zlib error: Z_DATA_ERROR |
