brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.0 KiB · e243c66 Raw
96 lines · yaml
1# RUN: yaml2obj %s | llvm-dwarfdump --verify -2 3## Check --verify doesn't fail when a DW_AT_type references a4## DW_TAG_template_alias.5##6## $ cat test.cpp7## template <typename T>8## using A = T;9## A<bool> a;10##11## $ clang++ test.cpp -g -gtemplate-alias -gsimple-template-names12 13--- !ELF14FileHeader:15  Class:    ELFCLASS6416  Data:     ELFDATA2LSB17  Type:     ET_REL18  Machine:  EM_X86_6419DWARF:20  debug_str:21    - "clang version 19.0.0"22    - "a"23    - "A"24    - "T"25    - "bool"26  debug_abbrev:27    - Table:28        - Code:            0x000000000000000129          Tag:             DW_TAG_compile_unit30          Children:        DW_CHILDREN_yes31          Attributes:32            - Attribute:       DW_AT_name33              Form:            DW_FORM_strp34            - Attribute:       DW_AT_language35              Form:            DW_FORM_data236        - Code:            0x000000000000000237          Tag:             DW_TAG_base_type38          Children:        DW_CHILDREN_no39          Attributes:40            - Attribute:       DW_AT_name41              Form:            DW_FORM_strp42        - Code:            0x000000000000000343          Tag:             DW_TAG_template_alias44          Children:        DW_CHILDREN_yes45          Attributes:46            - Attribute:       DW_AT_name47              Form:            DW_FORM_strp48            - Attribute:       DW_AT_type49              Form:            DW_FORM_ref_addr50        - Code:            0x000000000000000451          Tag:             DW_TAG_template_type_parameter52          Children:        DW_CHILDREN_no53          Attributes:54            - Attribute:       DW_AT_name55              Form:            DW_FORM_strp56            - Attribute:       DW_AT_type57              Form:            DW_FORM_ref_addr58        - Code:            0x000000000000000559          Tag:             DW_TAG_variable60          Children:        DW_CHILDREN_no61          Attributes:62            - Attribute:       DW_AT_name63              Form:            DW_FORM_strp64            - Attribute:       DW_AT_type65              Form:            DW_FORM_ref_addr66 67  debug_info:68    - Version:         469      AbbrOffset:      0x000000000000000070      AddrSize:        871      Entries:72        - AbbrCode:        0x0000000173          Values:74            - Value:           0x000000000000000075            - Value:           0x000000000000002176        - AbbrCode:        0x0000000277          Values:78            - Value:           0x000000000000001b79        - AbbrCode:        0x0000000380          Values:81            - Value:           0x000000000000001782            - Value:           0x000000000000001283        - AbbrCode:        0x0000000484          Values:85            - Value:           0x000000000000001986            - Value:           0x000000000000001287        - AbbrCode:        0x0000000088          Values:          []89        - AbbrCode:        0x0000000590          Values:91            - Value:           0x000000000000001592            - Value:           0x000000000000001793        - AbbrCode:        0x0000000094          Values:          []95...96