George Rimar | ff71afe | 2018-07-17 08:42:42 +0000 | [diff] [blame] | 1 | # REQUIRES: zlib, x86 |
| 2 | |
| 3 | # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o |
George Rimar | ea5d3f2 | 2018-07-17 09:10:16 +0000 | [diff] [blame] | 4 | # RUN: not ld.lld %t.o -o %t.so -shared 2>&1 | FileCheck %s |
George Rimar | ff71afe | 2018-07-17 08:42:42 +0000 | [diff] [blame] | 5 | |
| 6 | ## Check we are able to report zlib decompressor errors. |
| 7 | # CHECK: error: {{.*}}.o:(.zdebug_str): decompress failed: zlib error: Z_DATA_ERROR |
| 8 | |
| 9 | .section .zdebug_str,"MS",@progbits,1 |
| 10 | .ascii "ZLIB" |
| 11 | .byte 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1 |