# RUN: yaml2obj %s | llvm-dwarfdump - | FileCheck %s

# CHECK:      0x0000001e:   DW_TAG_subprogram
# CHECK-NEXT:                 DW_AT_name	("main")
# CHECK-NEXT:                 DW_AT_low_pc	(0x0000000000001000)
# CHECK-NEXT:                 DW_AT_high_pc	(0x0000000000002000)
# CHECK-NEXT:                 DW_AT_decl_line	(5)
# CHECK-NEXT:                 DW_AT_decl_column	(2)
# CHECK:      0x00000035:     DW_TAG_inlined_subroutine
# CHECK-NEXT:                   DW_AT_name	("inline1")
# CHECK-NEXT:                   DW_AT_low_pc	(0x0000000000001100)
# CHECK-NEXT:                   DW_AT_high_pc	(0x0000000000001200)
# CHECK-NEXT:                   DW_AT_call_line	(10)
# CHECK-NEXT:                   DW_AT_call_column	(6)

--- !ELF
FileHeader:
  Class:   ELFCLASS64
  Data:    ELFDATA2LSB
  Type:    ET_EXEC
  Machine: EM_X86_64
DWARF:
  debug_str:
    - ''
    - '/tmp/main.c'
    - main
    - inline1
  debug_abbrev:
    - Table:
        - Code:            0x0000000000000001
          Tag:             DW_TAG_compile_unit
          Children:        DW_CHILDREN_yes
          Attributes:
            - Attribute:       DW_AT_name
              Form:            DW_FORM_strp
            - Attribute:       DW_AT_language
              Form:            DW_FORM_data2
            - Attribute:       DW_AT_low_pc
              Form:            DW_FORM_addr
            - Attribute:       DW_AT_stmt_list
              Form:            DW_FORM_sec_offset
        - Code:            0x0000000000000002
          Tag:             DW_TAG_subprogram
          Children:        DW_CHILDREN_yes
          Attributes:
            - Attribute:       DW_AT_name
              Form:            DW_FORM_strp
            - Attribute:       DW_AT_low_pc
              Form:            DW_FORM_addr
            - Attribute:       DW_AT_high_pc
              Form:            DW_FORM_addr
            - Attribute:       DW_AT_decl_line
              Form:            DW_FORM_data1
            - Attribute:       DW_AT_decl_column
              Form:            DW_FORM_data1
        - Code:            0x0000000000000003
          Tag:             DW_TAG_inlined_subroutine
          Children:        DW_CHILDREN_no
          Attributes:
            - Attribute:       DW_AT_name
              Form:            DW_FORM_strp
            - Attribute:       DW_AT_low_pc
              Form:            DW_FORM_addr
            - Attribute:       DW_AT_high_pc
              Form:            DW_FORM_data4
            - Attribute:       DW_AT_call_line
              Form:            DW_FORM_data1
            - Attribute:       DW_AT_call_column
              Form:            DW_FORM_data1
  debug_info:
    - Length:          0x0000000000000046
      Version:         4
      AbbrOffset:      0x0000000000000000
      AddrSize:        8
      Entries:
        - AbbrCode:        0x00000001
          Values:
            - Value:           0x0000000000000001
            - Value:           0x0000000000000002
            - Value:           0x0000000000000000
            - Value:           0x0000000000000000
        - AbbrCode:        0x00000002
          Values:
            - Value:           0x000000000000000D
            - Value:           0x0000000000001000
            - Value:           0x0000000000002000
            - Value:           0x0000000000000005
            - Value:           0x0000000000000002
        - AbbrCode:        0x00000003
          Values:
            - Value:           0x0000000000000012
            - Value:           0x0000000000001100
            - Value:           0x0000000000000100
            - Value:           0x000000000000000A
            - Value:           0x0000000000000006
        - AbbrCode:        0x00000000
          Values:          []
        - AbbrCode:        0x00000000
          Values:          []
...
