1# RUN: yaml2obj %s -o %t.o 2# RUN: llvm-dwarfdump -debug-line -verify %t.o | FileCheck %s 3 4# CHECK: Verifying .debug_line... 5# CHECK: No errors 6 7# In a line table like the one below, with no rows (other than the 8# end_sequence), we should never verify the file index because the state 9# machine initializes the file index to 1, which is invalid in DWARF 5 due to 10# its 0-based indexing. 11 12# file_names[ 0]: 13# name: "/home/umb/tests_2018/106_rnglists2" 14# dir_index: 0 15# Address Line Column File ISA Discriminator OpIndex Flags 16# ------------------ ------ ------ ------ --- ------------- ------- ------------- 17# 0x0000000000000000 1 0 1 0 0 0 is_stmt end_sequence 18 19 20--- !ELF 21FileHeader: 22 Class: ELFCLASS64 23 Data: ELFDATA2LSB 24 Type: ET_EXEC 25DWARF: 26 debug_abbrev: 27 - ID: 0 28 Table: 29 - Code: 0x1 30 Tag: DW_TAG_compile_unit 31 Children: DW_CHILDREN_no 32 Attributes: 33 - Attribute: DW_AT_stmt_list 34 Form: DW_FORM_sec_offset 35 debug_info: 36 - Length: 0xd 37 Version: 5 38 UnitType: DW_UT_compile 39 AbbrevTableID: 0 40 AbbrOffset: 0x0 41 AddrSize: 8 42 Entries: 43 - AbbrCode: 0x1 44 Values: 45 - Value: 0x0 46Sections: 47 - Name: .debug_line 48 Type: SHT_PROGBITS 49 AddressAlign: 0x1 50 Content: 300000000500080025000000010101fb0e0d00010101010000000100000101011f010000000002011f020b010000000000000101 51 - Name: .debug_line_str 52 Type: SHT_PROGBITS 53 Flags: [ SHF_MERGE, SHF_STRINGS ] 54 AddressAlign: 0x1 55 Content: 2F686F6D652F756D622F74657374735F323031382F3130365F726E676C697374733200746573742E63707000 56