[NFC][RemoveDIs] Prefer iterators over inst-pointers in InstCombine
[llvm-project.git] / llvm / test / tools / llvm-objdump / Offloading / content-failure.test
blob40ff6785f2d38518468a5223f9dc5b7af02d2794
1 # Test to check if we fail to get the section contents.
2 # RUN: yaml2obj %s -o %t
3 # RUN: not llvm-objdump --offloading %t 2>&1 | FileCheck -DFILENAME=%t %s
5 !ELF
6 FileHeader:
7   Class:           ELFCLASS64
8   Data:            ELFDATA2LSB
9   Type:            ET_EXEC
10 Sections:
11   - Name:            .llvm.offloading
12     Type:            SHT_LLVM_OFFLOADING
13     Flags:           [ SHF_EXCLUDE ]
14     Address:         0x0
15     ShOffset:        0x99999
16     AddressAlign:    0x0000000000000008
18 # CHECK: error: '[[FILENAME]]': while extracting offloading files: The end of the file was unexpectedly encountered