19 lines · plain
1# REQUIRES: zlib2 3# RUN: yaml2obj %p/Inputs/compress-debug-sections.yaml -o %t.o4# RUN: cp %t.o %t.copy.o5 6# RUN: llvm-objcopy --compress-debug-sections=zlib %t.o %tz.o7# RUN: cp %tz.o %tz.copy.o8 9# RUN: llvm-objcopy --decompress-debug-sections %tz.o %t2.o10 11# Using redirects to avoid llvm-objdump from printing the filename.12# RUN: llvm-objdump -s --section=.debug_str - < %t.o > %t.txt13# RUN: llvm-objdump -s --section=.debug_str - < %t2.o > %t2.txt14 15# RUN: diff %t.txt %t2.txt16 17# RUN: cmp %t.o %t.copy.o18# RUN: cmp %tz.o %tz.copy.o19