28 lines · plain
1# Check that debug info line number pointing beyond the end of the file2# doesn't cause a segmentation fault in llvm-objdump.3 4# To rebuild the input: clang -g debug-info-fileinfo.S -o debug-info-fileinfo.exe -nostdlib5 6# RUN: llvm-objdump -S %p/Inputs/debug-info-fileinfo.exe.elf-x86_64 | FileCheck %s7 8# CHECK: Disassembly of section .text:9# CHECK: _start10# CHECK-NEXT: 400078: c3 retq11# CHECK: foo12# CHECK-NEXT: 400079: 90 nop13# CHECK-NEXT: 40007a: 90 nop14# CHECK-NEXT: 40007b: c3 retq15 16.text17 18.global _start; .type _start, STT_FUNC; _start:19 ret20 21.global foo; .type foo, STT_FUNC; foo:22 # foo23 # bar24 # baz25 nop26 nop27 ret28