1# REQUIRES: zlib 2 3# RUN: yaml2obj %p/Inputs/compress-debug-sections.yaml -o %t.o 4# RUN: cp %t.o %t.copy.o 5 6# RUN: llvm-objcopy --compress-debug-sections=zlib %t.o %tz.o 7# RUN: cp %tz.o %tz.copy.o 8 9# RUN: llvm-objcopy --decompress-debug-sections %tz.o %t2.o 10 11# Using redirects to avoid llvm-objdump from printing the filename. 12# RUN: llvm-objdump -s --section=.debug_str - < %t.o > %t.txt 13# RUN: llvm-objdump -s --section=.debug_str - < %t2.o > %t2.txt 14 15# RUN: diff %t.txt %t2.txt 16 17# RUN: cmp %t.o %t.copy.o 18# RUN: cmp %tz.o %tz.copy.o 19