2 # RUN: yaml2obj --docnum=1 %s -o %t1.o
3 # RUN: not ld.lld %t1.o -o /dev/null 2>&1 | FileCheck %s --check-prefix=TOO-SHORT
4 # TOO-SHORT: error: {{.*}}.o:(.debug_info): corrupted compressed section
6 # RUN: yaml2obj --docnum=2 %s -o %t2.o
7 # RUN: not ld.lld %t2.o -o /dev/null 2>&1 | FileCheck %s --check-prefix=UNKNOWN
8 # UNKNOWN: error: {{.*}}.o:(.debug_info): unsupported compression type (3)
10 # RUN: yaml2obj --docnum=3 %s -o %t3.o
11 # RUN: not ld.lld %t3.o -o /dev/null -shared 2>&1 | FileCheck %s
13 ## Check we are able to report zlib decompress errors.
14 # CHECK: error: {{.*}}.o:(.debug_info): decompress failed: zlib error: Z_DATA_ERROR
25 Flags
: [ SHF_COMPRESSED
]
27 Content
: "0100000000000000040000000000000001000000000000"
38 Flags
: [ SHF_COMPRESSED
]
40 Content
: "030000000000000000000000000000000100000000000000789c030000000001"
51 Flags
: [ SHF_COMPRESSED
]
53 Content
: "010000000000000004000000000000000100000000000000ffff"