1# RUN: yaml2obj %s -o %t.o 2# RUN: not llvm-dwarfdump -debug-line -verify %t.o | FileCheck %s 3 4# CHECK: Verifying .debug_line... 5# CHECK-NEXT: error: two compile unit DIEs, 0x0000000b and 0x0000001f, have the same DW_AT_stmt_list section offset: 6 7--- !ELF 8FileHeader: 9 Class: ELFCLASS64 10 Data: ELFDATA2LSB 11 Type: ET_EXEC 12DWARF: 13 debug_str: 14 - '' 15 - /tmp/main.c 16 - /tmp/foo.c 17 debug_abbrev: 18 - Table: 19 - Code: 0x00000001 20 Tag: DW_TAG_compile_unit 21 Children: DW_CHILDREN_no 22 Attributes: 23 - Attribute: DW_AT_name 24 Form: DW_FORM_strp 25 - Attribute: DW_AT_stmt_list 26 Form: DW_FORM_sec_offset 27 debug_info: 28 - Version: 4 29 AddrSize: 8 30 Entries: 31 - AbbrCode: 0x00000001 32 Values: 33 - Value: 0x0000000000000001 34 - Value: 0x0000000000000000 35 - Length: 16 36 Version: 4 37 AbbrevTableID: 0 38 AddrSize: 8 39 Entries: 40 - AbbrCode: 0x00000001 41 Values: 42 - Value: 0x000000000000000D 43 - Value: 0x0000000000000000 44 debug_line: 45 - Version: 2 46 MinInstLength: 1 47 DefaultIsStmt: 1 48 LineBase: 251 49 LineRange: 14 50 OpcodeBase: 13 51 StandardOpcodeLengths: [ 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1 ] 52 IncludeDirs: 53 - /tmp 54 Files: 55 - Name: main.c 56 DirIdx: 1 57 ModTime: 0 58 Length: 0 59 Opcodes: 60 - Opcode: DW_LNS_extended_op 61 ExtLen: 9 62 SubOpcode: DW_LNE_set_address 63 Data: 4096 64 - Opcode: DW_LNS_advance_line 65 SData: 9 66 Data: 4096 67 - Opcode: DW_LNS_copy 68 Data: 4096 69 - Opcode: DW_LNS_advance_pc 70 Data: 256 71 - Opcode: DW_LNS_extended_op 72 ExtLen: 1 73 SubOpcode: DW_LNE_end_sequence 74 Data: 256 75