1 # RUN: yaml2obj %s -o %t.o
2 # RUN: echo '---' > %t2.map
3 # RUN: echo "triple: 'x86_64-apple-darwin'" >> %t2.map
4 # RUN: echo 'objects:' >> %t2.map
5 # RUN: echo " - filename: '%t.o'" >> %t2.map
6 # RUN: echo ' symbols:' >> %t2.map
7 # RUN: echo ' - { sym: __Z3foov, objAddr: 0x0, binAddr: 0x10000, size: 0x10 }' >> %t2.map
8 # RUN: echo '...' >> %t2.map
9 # RUN: dsymutil --linker=parallel -y %t2.map -f -o %t1.out
10 # RUN: llvm-dwarfdump -a %t1.out | FileCheck %s
12 ## This test checks that DW_TAG_namespace with DW_AT_extension
13 ## attribute is joined with referenced namespace.
15 # CHECK: file format Mach-O 64-bit x86-64
16 # CHECK: 0x0000000b: DW_TAG_compile_unit
17 # CHECK: DW_TAG_namespace
18 # CHECK: DW_AT_name{{.*}}"parent_namespace"
19 # CHECK-NOT: DW_TAG_namespace
20 # CHECK: 0x[[INT:[0-9a-f]*]]: DW_TAG_base_type
21 # CHECK: DW_AT_name{{.*}}"int"
22 # CHECK: DW_TAG_compile_unit
23 # CHECK: DW_TAG_variable
24 # CHECK: DW_AT_type (0x00000000[[INT]]
30 cpusubtype: 0x00000003
49 - sectname: __debug_abbrev
51 addr: 0x000000000000000F
61 - sectname: __debug_info
63 addr: 0x000000000000100
102 - Tag: DW_TAG_compile_unit
103 Children: DW_CHILDREN_yes
105 - Attribute: DW_AT_producer
107 - Attribute: DW_AT_language
109 - Tag: DW_TAG_namespace
110 Children: DW_CHILDREN_yes
112 - Attribute: DW_AT_name
114 - Tag: DW_TAG_namespace
115 Children: DW_CHILDREN_yes
117 - Attribute: DW_AT_extension
118 Form: DW_FORM_ref_addr
119 - Tag: DW_TAG_base_type
120 Children: DW_CHILDREN_no
122 - Attribute: DW_AT_name
124 - Tag: DW_TAG_variable
125 Children: DW_CHILDREN_no
127 - Attribute: DW_AT_name
129 - Attribute: DW_AT_const_value
131 - Attribute: DW_AT_type
132 Form: DW_FORM_ref_addr
142 - CStr: parent_namespace