xref: /llvm-project/llvm/test/tools/llvm-dwarfdump/X86/verify_nested_functions.yaml (revision 2af4db7d5cc8e752634a249cf328b27836810245)
1# RUN: yaml2obj %s -o %t.o
2# RUN: llvm-dwarfdump -verify %t.o | FileCheck --implicit-check-not=error: %s
3
4--- !ELF
5FileHeader:
6  Class: ELFCLASS64
7  Data:  ELFDATA2LSB
8  Type:  ET_EXEC
9DWARF:
10  debug_str:
11    - ''
12    - /tmp/main.c
13    - main
14    - nested
15  debug_abbrev:
16    - Table:
17        - Code:            0x00000001
18          Tag:             DW_TAG_compile_unit
19          Children:        DW_CHILDREN_yes
20          Attributes:
21            - Attribute:       DW_AT_low_pc
22              Form:            DW_FORM_addr
23            - Attribute:       DW_AT_high_pc
24              Form:            DW_FORM_addr
25            - Attribute:       DW_AT_name
26              Form:            DW_FORM_strp
27        - Code:            0x00000002
28          Tag:             DW_TAG_subprogram
29          Children:        DW_CHILDREN_yes
30          Attributes:
31            - Attribute:       DW_AT_name
32              Form:            DW_FORM_strp
33            - Attribute:       DW_AT_low_pc
34              Form:            DW_FORM_addr
35            - Attribute:       DW_AT_high_pc
36              Form:            DW_FORM_addr
37  debug_info:
38    - Version:         4
39      AddrSize:        8
40      Entries:
41        - AbbrCode:        0x00000001
42          Values:
43            - Value:           0x0000000000001000
44            - Value:           0x0000000000002000
45            - Value:           0x0000000000000001
46        - AbbrCode:        0x00000002
47          Values:
48            - Value:           0x000000000000000D
49            - Value:           0x0000000000001000
50            - Value:           0x0000000000001500
51        - AbbrCode:        0x00000002
52          Values:
53            - Value:           0x0000000000000012
54            - Value:           0x0000000000001500
55            - Value:           0x0000000000002000
56        - AbbrCode:        0x00000000
57        - AbbrCode:        0x00000000
58        - AbbrCode:        0x00000000
59
60