File: verify_template_alias.yaml

package info (click to toggle)
llvm-toolchain-19 1%3A19.1.7-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,998,520 kB
  • sloc: cpp: 6,951,680; ansic: 1,486,157; asm: 913,598; python: 232,024; f90: 80,126; objc: 75,281; lisp: 37,276; pascal: 16,990; sh: 10,009; ml: 5,058; perl: 4,724; awk: 3,523; makefile: 3,167; javascript: 2,504; xml: 892; fortran: 664; cs: 573
file content (95 lines) | stat: -rw-r--r-- 3,088 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# RUN: yaml2obj %s | llvm-dwarfdump --verify -

## Check --verify doesn't fail when a DW_AT_type references a
## DW_TAG_template_alias.
##
## $ cat test.cpp
## template <typename T>
## using A = T;
## A<bool> a;
##
## $ clang++ test.cpp -g -gtemplate-alias -gsimple-template-names

--- !ELF
FileHeader:
  Class:    ELFCLASS64
  Data:     ELFDATA2LSB
  Type:     ET_REL
  Machine:  EM_X86_64
DWARF:
  debug_str:
    - "clang version 19.0.0"
    - "a"
    - "A"
    - "T"
    - "bool"
  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
        - Code:            0x0000000000000002
          Tag:             DW_TAG_base_type
          Children:        DW_CHILDREN_no
          Attributes:
            - Attribute:       DW_AT_name
              Form:            DW_FORM_strp
        - Code:            0x0000000000000003
          Tag:             DW_TAG_template_alias
          Children:        DW_CHILDREN_yes
          Attributes:
            - Attribute:       DW_AT_name
              Form:            DW_FORM_strp
            - Attribute:       DW_AT_type
              Form:            DW_FORM_ref_addr
        - Code:            0x0000000000000004
          Tag:             DW_TAG_template_type_parameter
          Children:        DW_CHILDREN_no
          Attributes:
            - Attribute:       DW_AT_name
              Form:            DW_FORM_strp
            - Attribute:       DW_AT_type
              Form:            DW_FORM_ref_addr
        - Code:            0x0000000000000005
          Tag:             DW_TAG_variable
          Children:        DW_CHILDREN_no
          Attributes:
            - Attribute:       DW_AT_name
              Form:            DW_FORM_strp
            - Attribute:       DW_AT_type
              Form:            DW_FORM_ref_addr

  debug_info:
    - Version:         4
      AbbrOffset:      0x0000000000000000
      AddrSize:        8
      Entries:
        - AbbrCode:        0x00000001
          Values:
            - Value:           0x0000000000000000
            - Value:           0x0000000000000021
        - AbbrCode:        0x00000002
          Values:
            - Value:           0x000000000000001b
        - AbbrCode:        0x00000003
          Values:
            - Value:           0x0000000000000017
            - Value:           0x0000000000000012
        - AbbrCode:        0x00000004
          Values:
            - Value:           0x0000000000000019
            - Value:           0x0000000000000012
        - AbbrCode:        0x00000000
          Values:          []
        - AbbrCode:        0x00000005
          Values:
            - Value:           0x0000000000000015
            - Value:           0x0000000000000017
        - AbbrCode:        0x00000000
          Values:          []
...