forked from OSchip/llvm-project
Add comments to debug info testing case.
llvm-svn: 192376
This commit is contained in:
parent
204cfa6e43
commit
9b971f9590
|
@ -3,14 +3,18 @@
|
|||
; RUN: llc -filetype=obj -O0 < %s > %t
|
||||
; RUN: llvm-dwarfdump -debug-dump=info %t | FileCheck %s
|
||||
; CHECK: [[TYPE:.*]]: DW_TAG_structure_type
|
||||
; Make sure we correctly handle containing type of a struct being a type identifier.
|
||||
; CHECK-NEXT: DW_AT_containing_type [DW_FORM_ref4] (cu + {{.*}} => {[[TYPE]]})
|
||||
; CHECK-NEXT: DW_AT_name [DW_FORM_strp] {{.*}}= "C")
|
||||
; CHECK: [[SP:.*]]: DW_TAG_subprogram
|
||||
; Make sure we correctly handle containing type of a subprogram being a type identifier.
|
||||
; CHECK: DW_AT_containing_type [DW_FORM_ref4] (cu + {{.*}} => {[[TYPE]]})
|
||||
; CHECK: [[TYPE2:.*]]: DW_TAG_structure_type
|
||||
; CHECK: DW_TAG_structure_type
|
||||
; CHECK: DW_AT_name [DW_FORM_strp] {{.*}}= "D")
|
||||
; CHECK: DW_TAG_member
|
||||
; CHECK: DW_AT_name [DW_FORM_strp] {{.*}}= "a")
|
||||
; Make sure we correctly handle context of a struct being a type identifier.
|
||||
; CHECK: DW_TAG_structure_type
|
||||
; CHECK-NEXT: DW_AT_name [DW_FORM_strp] {{.*}}= "Nested")
|
||||
; CHECK: DW_TAG_structure_type
|
||||
|
@ -18,17 +22,21 @@
|
|||
; CHECK-NEXT: DW_AT_declaration [DW_FORM_flag] (0x01)
|
||||
; CHECK: DW_TAG_structure_type
|
||||
; CHECK-NEXT: DW_AT_name [DW_FORM_strp] {{.*}}= "virt<bar>")
|
||||
; Make sure we correctly handle type of a template_type being a type identifier.
|
||||
; CHECK: DW_TAG_template_type_parameter
|
||||
; CHECK-NEXT: DW_AT_type [DW_FORM_ref4] (cu + {{.*}} => {[[TYPE2]]})
|
||||
; CHECK-NEXT: DW_AT_name [DW_FORM_strp] {{.*}}= "T")
|
||||
; Make sure we correctly handle derived-from of a typedef being a type identifier.
|
||||
; CHECK: DW_TAG_typedef
|
||||
; CHECK-NEXT: DW_AT_type [DW_FORM_ref4] (cu + {{.*}} => {[[TYPE2]]})
|
||||
; CHECK: DW_AT_name [DW_FORM_strp] {{.*}}= "baz2")
|
||||
; Make sure we correctly handle derived-from of a pointer type being a type identifier.
|
||||
; CHECK: DW_TAG_pointer_type
|
||||
; CHECK: DW_AT_type [DW_FORM_ref4] (cu + {{.*}} => {[[TYPE]]})
|
||||
; CHECK: DW_TAG_typedef
|
||||
; CHECK-NEXT: DW_AT_type [DW_FORM_ref4] (cu + {{.*}} => {[[TYPE2]]})
|
||||
; CHECK: DW_AT_name [DW_FORM_strp] {{.*}}= "baz")
|
||||
; Make sure we correctly handle derived-from of an array type being a type identifier.
|
||||
; CHECK: DW_TAG_array_type
|
||||
; CHECK-NEXT: DW_AT_type [DW_FORM_ref4] (cu + {{.*}} => {[[TYPE2]]})
|
||||
; IR generated from clang -g with the following source:
|
||||
|
|
Loading…
Reference in New Issue