2014-03-14 07:26:25 +08:00
|
|
|
; RUN: llc %s -o %t -filetype=obj -O0 -mtriple=x86_64-unknown-linux-gnu -dwarf-version=4
|
2013-01-26 05:44:53 +08:00
|
|
|
; RUN: llvm-dwarfdump -debug-dump=info %t | FileCheck %s -check-prefix=PRESENT
|
|
|
|
; RUN: llvm-dwarfdump -debug-dump=info %t | FileCheck %s -check-prefix=ABSENT
|
2014-03-14 07:26:25 +08:00
|
|
|
; RUN: llc %s -o %t -filetype=obj -O0 -mtriple=x86_64-apple-darwin -dwarf-version=4
|
2013-02-28 07:21:02 +08:00
|
|
|
; RUN: llvm-dwarfdump -debug-dump=info %t | FileCheck %s -check-prefix=DARWINP
|
|
|
|
; RUN: llvm-dwarfdump -debug-dump=info %t | FileCheck %s -check-prefix=DARWINA
|
2013-01-17 03:53:47 +08:00
|
|
|
; Verify that attributes we do want are PRESENT;
|
|
|
|
; verify that attributes we don't want are ABSENT.
|
|
|
|
; It's a lot easier to do this in two passes than in one.
|
|
|
|
; PR14471
|
|
|
|
|
2013-01-27 05:55:23 +08:00
|
|
|
; LLVM IR generated using: clang -emit-llvm -S -g
|
2013-01-17 03:53:47 +08:00
|
|
|
; (with the Clang part of this patch applied).
|
|
|
|
;
|
|
|
|
; class C
|
|
|
|
; {
|
|
|
|
; static int a;
|
2013-01-20 07:00:25 +08:00
|
|
|
; const static bool const_a = true;
|
2013-01-17 03:53:47 +08:00
|
|
|
; protected:
|
|
|
|
; static int b;
|
2013-01-20 09:18:01 +08:00
|
|
|
; const static float const_b = 3.14;
|
2013-01-17 03:53:47 +08:00
|
|
|
; public:
|
|
|
|
; static int c;
|
|
|
|
; const static int const_c = 18;
|
|
|
|
; int d;
|
|
|
|
; };
|
|
|
|
;
|
|
|
|
; int C::a = 4;
|
|
|
|
; int C::b = 2;
|
|
|
|
; int C::c = 1;
|
|
|
|
;
|
|
|
|
; int main()
|
|
|
|
; {
|
|
|
|
; C instance_C;
|
|
|
|
; instance_C.d = 8;
|
|
|
|
; return C::c;
|
|
|
|
; }
|
|
|
|
|
|
|
|
%class.C = type { i32 }
|
|
|
|
|
|
|
|
@_ZN1C1aE = global i32 4, align 4
|
|
|
|
@_ZN1C1bE = global i32 2, align 4
|
|
|
|
@_ZN1C1cE = global i32 1, align 4
|
|
|
|
|
|
|
|
define i32 @main() nounwind uwtable {
|
|
|
|
entry:
|
|
|
|
%retval = alloca i32, align 4
|
|
|
|
%instance_C = alloca %class.C, align 4
|
|
|
|
store i32 0, i32* %retval
|
2014-10-02 02:10:54 +08:00
|
|
|
call void @llvm.dbg.declare(metadata !{%class.C* %instance_C}, metadata !29), !dbg !30
|
2013-01-27 05:55:23 +08:00
|
|
|
%d = getelementptr inbounds %class.C* %instance_C, i32 0, i32 0, !dbg !31
|
|
|
|
store i32 8, i32* %d, align 4, !dbg !31
|
|
|
|
%0 = load i32* @_ZN1C1cE, align 4, !dbg !32
|
|
|
|
ret i32 %0, !dbg !32
|
2013-01-17 03:53:47 +08:00
|
|
|
}
|
|
|
|
|
2014-10-02 02:10:54 +08:00
|
|
|
declare void @llvm.dbg.declare(metadata, metadata) nounwind readnone
|
2013-01-17 03:53:47 +08:00
|
|
|
|
|
|
|
!llvm.dbg.cu = !{!0}
|
2013-11-23 05:49:45 +08:00
|
|
|
!llvm.module.flags = !{!34}
|
2013-01-17 03:53:47 +08:00
|
|
|
|
2014-02-04 09:23:52 +08:00
|
|
|
!0 = metadata !{i32 786449, metadata !33, i32 4, metadata !"clang version 3.3 (trunk 171914)", i1 false, metadata !"", i32 0, metadata !1, metadata !1, metadata !3, metadata !10, metadata !1, metadata !""} ; [ DW_TAG_compile_unit ] [/home/probinson/projects/upstream/static-member/test/debug-info-static-member.cpp] [DW_LANG_C_plus_plus]
|
|
|
|
!1 = metadata !{}
|
2013-02-02 13:56:24 +08:00
|
|
|
!3 = metadata !{metadata !5}
|
2013-07-25 14:43:01 +08:00
|
|
|
!5 = metadata !{i32 786478, metadata !33, metadata !6, metadata !"main", metadata !"main", metadata !"", i32 18, metadata !7, i1 false, i1 true, i32 0, i32 0, null, i32 256, i1 false, i32 ()* @main, null, null, metadata !1, i32 23} ; [ DW_TAG_subprogram ] [line 18] [def] [scope 23] [main]
|
2013-03-28 10:44:59 +08:00
|
|
|
!6 = metadata !{i32 786473, metadata !33} ; [ DW_TAG_file_type ]
|
2013-09-08 11:11:54 +08:00
|
|
|
!7 = metadata !{i32 786453, i32 0, null, i32 0, i32 0, i64 0, i64 0, i64 0, i32 0, null, metadata !8, i32 0, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ]
|
2013-01-17 03:53:47 +08:00
|
|
|
!8 = metadata !{metadata !9}
|
2013-03-28 10:44:59 +08:00
|
|
|
!9 = metadata !{i32 786468, null, null, metadata !"int", i32 0, i64 32, i64 32, i64 0, i32 0, i32 5} ; [ DW_TAG_base_type ] [int] [line 0, size 32, align 32, offset 0, enc DW_ATE_signed]
|
2013-02-02 13:56:24 +08:00
|
|
|
!10 = metadata !{metadata !12, metadata !27, metadata !28}
|
2013-01-27 05:55:23 +08:00
|
|
|
!12 = metadata !{i32 786484, i32 0, metadata !13, metadata !"a", metadata !"a", metadata !"_ZN1C1aE", metadata !6, i32 14, metadata !9, i32 0, i32 1, i32* @_ZN1C1aE, metadata !15} ; [ DW_TAG_variable ] [a] [line 14] [def]
|
2013-08-27 06:39:55 +08:00
|
|
|
!13 = metadata !{i32 786434, metadata !33, null, metadata !"C", i32 1, i64 32, i64 32, i32 0, i32 0, null, metadata !14, i32 0, null, null, null} ; [ DW_TAG_class_type ] [C] [line 1, size 32, align 32, offset 0] [def] [from ]
|
2013-01-20 09:18:01 +08:00
|
|
|
!14 = metadata !{metadata !15, metadata !16, metadata !19, metadata !20, metadata !23, metadata !24, metadata !26}
|
2013-03-28 10:44:59 +08:00
|
|
|
!15 = metadata !{i32 786445, metadata !33, metadata !13, metadata !"a", i32 3, i64 0, i64 0, i64 0, i32 4097, metadata !9, null} ; [ DW_TAG_member ] [a] [line 3, size 0, align 0, offset 0] [private] [static] [from int]
|
|
|
|
!16 = metadata !{i32 786445, metadata !33, metadata !13, metadata !"const_a", i32 4, i64 0, i64 0, i64 0, i32 4097, metadata !17, i1 true} ; [ DW_TAG_member ] [const_a] [line 4, size 0, align 0, offset 0] [private] [static] [from ]
|
|
|
|
!17 = metadata !{i32 786470, null, null, metadata !"", i32 0, i64 0, i64 0, i64 0, i32 0, metadata !18} ; [ DW_TAG_const_type ] [line 0, size 0, align 0, offset 0] [from bool]
|
|
|
|
!18 = metadata !{i32 786468, null, null, metadata !"bool", i32 0, i64 8, i64 8, i64 0, i32 0, i32 2} ; [ DW_TAG_base_type ] [bool] [line 0, size 8, align 8, offset 0, enc DW_ATE_boolean]
|
|
|
|
!19 = metadata !{i32 786445, metadata !33, metadata !13, metadata !"b", i32 6, i64 0, i64 0, i64 0, i32 4098, metadata !9, null} ; [ DW_TAG_member ] [b] [line 6, size 0, align 0, offset 0] [protected] [static] [from int]
|
|
|
|
!20 = metadata !{i32 786445, metadata !33, metadata !13, metadata !"const_b", i32 7, i64 0, i64 0, i64 0, i32 4098, metadata !21, float 0x40091EB860000000} ; [ DW_TAG_member ] [const_b] [line 7, size 0, align 0, offset 0] [protected] [static] [from ]
|
|
|
|
!21 = metadata !{i32 786470, null, null, metadata !"", i32 0, i64 0, i64 0, i64 0, i32 0, metadata !22} ; [ DW_TAG_const_type ] [line 0, size 0, align 0, offset 0] [from float]
|
|
|
|
!22 = metadata !{i32 786468, null, null, metadata !"float", i32 0, i64 32, i64 32, i64 0, i32 0, i32 4} ; [ DW_TAG_base_type ] [float] [line 0, size 32, align 32, offset 0, enc DW_ATE_float]
|
2014-08-30 06:44:07 +08:00
|
|
|
!23 = metadata !{i32 786445, metadata !33, metadata !13, metadata !"c", i32 9, i64 0, i64 0, i64 0, i32 4099, metadata !9, null} ; [ DW_TAG_member ] [c] [line 9, size 0, align 0, offset 0] [static] [from int]
|
|
|
|
!24 = metadata !{i32 786445, metadata !33, metadata !13, metadata !"const_c", i32 10, i64 0, i64 0, i64 0, i32 4099, metadata !25, i32 18} ; [ DW_TAG_member ] [const_c] [line 10, size 0, align 0, offset 0] [static] [from ]
|
2013-03-28 10:44:59 +08:00
|
|
|
!25 = metadata !{i32 786470, null, null, metadata !"", i32 0, i64 0, i64 0, i64 0, i32 0, metadata !9} ; [ DW_TAG_const_type ] [line 0, size 0, align 0, offset 0] [from int]
|
2014-08-30 06:44:07 +08:00
|
|
|
!26 = metadata !{i32 786445, metadata !33, metadata !13, metadata !"d", i32 11, i64 32, i64 32, i64 0, i32 3, metadata !9} ; [ DW_TAG_member ] [d] [line 11, size 32, align 32, offset 0] [from int]
|
2013-01-27 05:55:23 +08:00
|
|
|
!27 = metadata !{i32 786484, i32 0, metadata !13, metadata !"b", metadata !"b", metadata !"_ZN1C1bE", metadata !6, i32 15, metadata !9, i32 0, i32 1, i32* @_ZN1C1bE, metadata !19} ; [ DW_TAG_variable ] [b] [line 15] [def]
|
|
|
|
!28 = metadata !{i32 786484, i32 0, metadata !13, metadata !"c", metadata !"c", metadata !"_ZN1C1cE", metadata !6, i32 16, metadata !9, i32 0, i32 1, i32* @_ZN1C1cE, metadata !23} ; [ DW_TAG_variable ] [c] [line 16] [def]
|
|
|
|
!29 = metadata !{i32 786688, metadata !5, metadata !"instance_C", metadata !6, i32 20, metadata !13, i32 0, i32 0} ; [ DW_TAG_auto_variable ] [instance_C] [line 20]
|
|
|
|
!30 = metadata !{i32 20, i32 0, metadata !5, null}
|
|
|
|
!31 = metadata !{i32 21, i32 0, metadata !5, null}
|
|
|
|
!32 = metadata !{i32 22, i32 0, metadata !5, null}
|
2013-03-18 05:13:55 +08:00
|
|
|
!33 = metadata !{metadata !"/usr/local/google/home/blaikie/Development/llvm/src/tools/clang/test/CodeGenCXX/debug-info-static-member.cpp", metadata !"/home/blaikie/local/Development/llvm/build/clang/x86-64/Debug/llvm"}
|
2013-01-17 03:53:47 +08:00
|
|
|
; PRESENT verifies that static member declarations have these attributes:
|
|
|
|
; external, declaration, accessibility, and either DW_AT_MIPS_linkage_name
|
|
|
|
; (for variables) or DW_AT_const_value (for constants).
|
|
|
|
;
|
|
|
|
; PRESENT: .debug_info contents:
|
|
|
|
; PRESENT: DW_TAG_class_type
|
|
|
|
; PRESENT-NEXT: DW_AT_name {{.*}} "C"
|
|
|
|
; PRESENT: 0x[[DECL_A:[0-9a-f]+]]: DW_TAG_member
|
|
|
|
; PRESENT-NEXT: DW_AT_name {{.*}} "a"
|
|
|
|
; PRESENT: DW_AT_external
|
|
|
|
; PRESENT: DW_AT_declaration
|
2014-09-05 03:39:20 +08:00
|
|
|
; PRESENT: DW_AT_accessibility [DW_FORM_data1] (DW_ACCESS_private)
|
2013-01-17 03:53:47 +08:00
|
|
|
; PRESENT: DW_TAG_member
|
|
|
|
; PRESENT-NEXT: DW_AT_name {{.*}} "const_a"
|
|
|
|
; PRESENT: DW_AT_external
|
|
|
|
; PRESENT: DW_AT_declaration
|
2014-09-05 03:39:20 +08:00
|
|
|
; PRESENT: DW_AT_accessibility [DW_FORM_data1] (DW_ACCESS_private)
|
2013-01-20 07:00:25 +08:00
|
|
|
; PRESENT: DW_AT_const_value {{.*}} (1)
|
2013-01-17 03:53:47 +08:00
|
|
|
; PRESENT: 0x[[DECL_B:[0-9a-f]+]]: DW_TAG_member
|
|
|
|
; PRESENT-NEXT: DW_AT_name {{.*}} "b"
|
2014-09-05 03:39:20 +08:00
|
|
|
; PRESENT: DW_AT_accessibility [DW_FORM_data1] (DW_ACCESS_protected)
|
2013-01-17 03:53:47 +08:00
|
|
|
; PRESENT: DW_TAG_member
|
|
|
|
; PRESENT-NEXT: DW_AT_name {{.*}} "const_b"
|
2014-09-05 03:39:20 +08:00
|
|
|
; PRESENT: DW_AT_accessibility [DW_FORM_data1] (DW_ACCESS_protected)
|
2014-05-11 23:47:39 +08:00
|
|
|
; PRESENT: DW_AT_const_value [DW_FORM_udata] (1078523331)
|
2013-01-17 03:53:47 +08:00
|
|
|
; PRESENT: 0x[[DECL_C:[0-9a-f]+]]: DW_TAG_member
|
|
|
|
; PRESENT-NEXT: DW_AT_name {{.*}} "c"
|
2014-09-05 03:39:20 +08:00
|
|
|
; PRESENT: DW_AT_accessibility [DW_FORM_data1] (DW_ACCESS_public)
|
2013-01-17 03:53:47 +08:00
|
|
|
; PRESENT: DW_TAG_member
|
|
|
|
; PRESENT-NEXT: DW_AT_name {{.*}} "const_c"
|
2014-09-05 03:39:20 +08:00
|
|
|
; PRESENT: DW_AT_accessibility [DW_FORM_data1] (DW_ACCESS_public)
|
2013-08-28 07:49:04 +08:00
|
|
|
; PRESENT: DW_AT_const_value {{.*}} (18)
|
2013-01-17 03:53:47 +08:00
|
|
|
; While we're here, a normal member has data_member_location and
|
|
|
|
; accessibility attributes.
|
|
|
|
; PRESENT: DW_TAG_member
|
|
|
|
; PRESENT-NEXT: DW_AT_name {{.*}} "d"
|
|
|
|
; PRESENT: DW_AT_data_member_location
|
2014-09-05 03:39:20 +08:00
|
|
|
; PRESENT: DW_AT_accessibility [DW_FORM_data1] (DW_ACCESS_public)
|
2013-01-17 03:53:47 +08:00
|
|
|
; PRESENT: NULL
|
|
|
|
; Definitions point back to their declarations, and have a location.
|
|
|
|
; PRESENT: DW_TAG_variable
|
|
|
|
; PRESENT-NEXT: DW_AT_specification {{.*}} {0x[[DECL_A]]}
|
|
|
|
; PRESENT-NEXT: DW_AT_location
|
2014-03-14 07:26:25 +08:00
|
|
|
; PRESENT-NEXT: DW_AT_linkage_name {{.*}} "_ZN1C1aE"
|
2013-01-17 03:53:47 +08:00
|
|
|
; PRESENT: DW_TAG_variable
|
|
|
|
; PRESENT-NEXT: DW_AT_specification {{.*}} {0x[[DECL_B]]}
|
|
|
|
; PRESENT-NEXT: DW_AT_location
|
2014-03-14 07:26:25 +08:00
|
|
|
; PRESENT-NEXT: DW_AT_linkage_name {{.*}} "_ZN1C1bE"
|
2013-01-17 03:53:47 +08:00
|
|
|
; PRESENT: DW_TAG_variable
|
|
|
|
; PRESENT-NEXT: DW_AT_specification {{.*}} {0x[[DECL_C]]}
|
|
|
|
; PRESENT-NEXT: DW_AT_location
|
2014-03-14 07:26:25 +08:00
|
|
|
; PRESENT-NEXT: DW_AT_linkage_name {{.*}} "_ZN1C1cE"
|
2013-01-17 03:53:47 +08:00
|
|
|
|
2013-02-28 07:21:02 +08:00
|
|
|
; For Darwin gdb:
|
|
|
|
; DARWINP: .debug_info contents:
|
|
|
|
; DARWINP: DW_TAG_class_type
|
|
|
|
; DARWINP-NEXT: DW_AT_name {{.*}} "C"
|
|
|
|
; DARWINP: 0x[[DECL_A:[0-9a-f]+]]: DW_TAG_member
|
|
|
|
; DARWINP-NEXT: DW_AT_name {{.*}} "a"
|
|
|
|
; DARWINP: DW_AT_external
|
|
|
|
; DARWINP: DW_AT_declaration
|
2014-09-05 03:39:20 +08:00
|
|
|
; DARWINP: DW_AT_accessibility [DW_FORM_data1] (DW_ACCESS_private)
|
2013-02-28 07:21:02 +08:00
|
|
|
; DARWINP: DW_TAG_member
|
|
|
|
; DARWINP-NEXT: DW_AT_name {{.*}} "const_a"
|
|
|
|
; DARWINP: DW_AT_external
|
|
|
|
; DARWINP: DW_AT_declaration
|
2014-09-05 03:39:20 +08:00
|
|
|
; DARWINP: DW_AT_accessibility [DW_FORM_data1] (DW_ACCESS_private)
|
2013-02-28 07:21:02 +08:00
|
|
|
; DARWINP: DW_AT_const_value {{.*}} (1)
|
|
|
|
; DARWINP: 0x[[DECL_B:[0-9a-f]+]]: DW_TAG_member
|
|
|
|
; DARWINP-NEXT: DW_AT_name {{.*}} "b"
|
2014-09-05 03:39:20 +08:00
|
|
|
; DARWINP: DW_AT_accessibility [DW_FORM_data1] (DW_ACCESS_protected)
|
2013-02-28 07:21:02 +08:00
|
|
|
; DARWINP: DW_TAG_member
|
|
|
|
; DARWINP-NEXT: DW_AT_name {{.*}} "const_b"
|
2014-09-05 03:39:20 +08:00
|
|
|
; DARWINP: DW_AT_accessibility [DW_FORM_data1] (DW_ACCESS_protected)
|
2014-05-11 23:47:39 +08:00
|
|
|
; DARWINP: DW_AT_const_value [DW_FORM_udata] (1078523331)
|
2013-02-28 07:21:02 +08:00
|
|
|
; DARWINP: 0x[[DECL_C:[0-9a-f]+]]: DW_TAG_member
|
|
|
|
; DARWINP-NEXT: DW_AT_name {{.*}} "c"
|
2014-09-05 03:39:20 +08:00
|
|
|
; DARWINP: DW_AT_accessibility [DW_FORM_data1] (DW_ACCESS_public)
|
2013-02-28 07:21:02 +08:00
|
|
|
; DARWINP: DW_TAG_member
|
|
|
|
; DARWINP-NEXT: DW_AT_name {{.*}} "const_c"
|
2014-09-05 03:39:20 +08:00
|
|
|
; DARWINP: DW_AT_accessibility [DW_FORM_data1] (DW_ACCESS_public)
|
2013-08-28 07:49:04 +08:00
|
|
|
; DARWINP: DW_AT_const_value {{.*}} (18)
|
2013-02-28 07:21:02 +08:00
|
|
|
; While we're here, a normal member has data_member_location and
|
|
|
|
; accessibility attributes.
|
|
|
|
; DARWINP: DW_TAG_member
|
|
|
|
; DARWINP-NEXT: DW_AT_name {{.*}} "d"
|
|
|
|
; DARWINP: DW_AT_data_member_location
|
2014-09-05 03:39:20 +08:00
|
|
|
; DARWINP: DW_AT_accessibility [DW_FORM_data1] (DW_ACCESS_public)
|
2013-02-28 07:21:02 +08:00
|
|
|
; DARWINP: NULL
|
|
|
|
; Definitions point back to their declarations, and have a location.
|
|
|
|
; DARWINP: DW_TAG_variable
|
|
|
|
; DARWINP-NEXT: DW_AT_specification {{.*}} {0x[[DECL_A]]}
|
|
|
|
; DARWINP-NEXT: DW_AT_location
|
2014-03-14 07:26:25 +08:00
|
|
|
; DARWINP-NEXT: DW_AT_linkage_name {{.*}} "_ZN1C1aE"
|
2013-02-28 07:21:02 +08:00
|
|
|
; DARWINP: DW_TAG_variable
|
|
|
|
; DARWINP-NEXT: DW_AT_specification {{.*}} {0x[[DECL_B]]}
|
|
|
|
; DARWINP-NEXT: DW_AT_location
|
2014-03-14 07:26:25 +08:00
|
|
|
; DARWINP-NEXT: DW_AT_linkage_name {{.*}} "_ZN1C1bE"
|
2013-02-28 07:21:02 +08:00
|
|
|
; DARWINP: DW_TAG_variable
|
|
|
|
; DARWINP-NEXT: DW_AT_specification {{.*}} {0x[[DECL_C]]}
|
|
|
|
; DARWINP-NEXT: DW_AT_location
|
2014-03-14 07:26:25 +08:00
|
|
|
; DARWINP-NEXT: DW_AT_linkage_name {{.*}} "_ZN1C1cE"
|
2013-02-28 07:21:02 +08:00
|
|
|
|
2013-01-17 03:53:47 +08:00
|
|
|
; ABSENT verifies that static member declarations do not have either
|
|
|
|
; DW_AT_location or DW_AT_data_member_location; also, variables do not
|
2014-03-14 07:26:25 +08:00
|
|
|
; have DW_AT_const_value and constants do not have DW_AT_linkage_name.
|
2013-01-17 03:53:47 +08:00
|
|
|
;
|
|
|
|
; ABSENT: .debug_info contents:
|
|
|
|
; ABSENT: DW_TAG_member
|
|
|
|
; ABSENT: DW_AT_name {{.*}} "a"
|
|
|
|
; ABSENT-NOT: DW_AT_const_value
|
|
|
|
; ABSENT-NOT: location
|
|
|
|
; ABSENT: DW_AT_name {{.*}} "const_a"
|
2014-03-14 07:26:25 +08:00
|
|
|
; ABSENT-NOT: DW_AT_linkage_name
|
2013-01-17 03:53:47 +08:00
|
|
|
; ABSENT-NOT: location
|
|
|
|
; ABSENT: DW_AT_name {{.*}} "b"
|
|
|
|
; ABSENT-NOT: DW_AT_const_value
|
|
|
|
; ABSENT-NOT: location
|
|
|
|
; ABSENT: DW_AT_name {{.*}} "const_b"
|
2014-03-14 07:26:25 +08:00
|
|
|
; ABSENT-NOT: DW_AT_linkage_name
|
2013-01-17 03:53:47 +08:00
|
|
|
; ABSENT-NOT: location
|
|
|
|
; ABSENT: DW_AT_name {{.*}} "c"
|
|
|
|
; ABSENT-NOT: DW_AT_const_value
|
|
|
|
; ABSENT-NOT: location
|
|
|
|
; ABSENT: DW_AT_name {{.*}} "const_c"
|
2014-03-14 07:26:25 +08:00
|
|
|
; ABSENT-NOT: DW_AT_linkage_name
|
2013-01-17 03:53:47 +08:00
|
|
|
; ABSENT-NOT: location
|
|
|
|
; While we're here, a normal member does not have a linkage name, constant
|
|
|
|
; value, or DW_AT_location.
|
|
|
|
; ABSENT: DW_AT_name {{.*}} "d"
|
2014-03-14 07:26:25 +08:00
|
|
|
; ABSENT-NOT: DW_AT_linkage_name
|
2013-01-17 03:53:47 +08:00
|
|
|
; ABSENT-NOT: DW_AT_const_value
|
|
|
|
; ABSENT-NOT: DW_AT_location
|
|
|
|
; ABSENT: NULL
|
2013-02-28 07:21:02 +08:00
|
|
|
|
|
|
|
; For Darwin gdb:
|
|
|
|
; DARWINA: .debug_info contents:
|
|
|
|
; DARWINA: DW_TAG_member
|
|
|
|
; DARWINA: DW_AT_name {{.*}} "a"
|
|
|
|
; DARWINA-NOT: DW_AT_const_value
|
|
|
|
; DARWINA-NOT: location
|
|
|
|
; DARWINA: DW_AT_name {{.*}} "const_a"
|
2014-03-14 07:26:25 +08:00
|
|
|
; DARWINA-NOT: DW_AT_linkage_name
|
2013-02-28 07:21:02 +08:00
|
|
|
; DARWINA-NOT: location
|
|
|
|
; DARWINA: DW_AT_name {{.*}} "b"
|
|
|
|
; DARWINA-NOT: DW_AT_const_value
|
|
|
|
; DARWINA-NOT: location
|
|
|
|
; DARWINA: DW_AT_name {{.*}} "const_b"
|
2014-03-14 07:26:25 +08:00
|
|
|
; DARWINA-NOT: DW_AT_linkage_name
|
2013-02-28 07:21:02 +08:00
|
|
|
; DARWINA-NOT: location
|
|
|
|
; DARWINA: DW_AT_name {{.*}} "c"
|
|
|
|
; DARWINA-NOT: DW_AT_const_value
|
|
|
|
; DARWINA-NOT: location
|
|
|
|
; DARWINA: DW_AT_name {{.*}} "const_c"
|
2014-03-14 07:26:25 +08:00
|
|
|
; DARWINA-NOT: DW_AT_linkage_name
|
2013-02-28 07:21:02 +08:00
|
|
|
; DARWINA-NOT: location
|
|
|
|
; While we're here, a normal member does not have a linkage name, constant
|
|
|
|
; value, or DW_AT_location.
|
|
|
|
; DARWINA: DW_AT_name {{.*}} "d"
|
2014-03-14 07:26:25 +08:00
|
|
|
; DARWINA-NOT: DW_AT_linkage_name
|
2013-02-28 07:21:02 +08:00
|
|
|
; DARWINA-NOT: DW_AT_const_value
|
|
|
|
; DARWINA-NOT: DW_AT_location
|
|
|
|
; DARWINA: NULL
|
2013-11-23 05:49:45 +08:00
|
|
|
!34 = metadata !{i32 1, metadata !"Debug Info Version", i32 1}
|