1 # RUN: yaml2obj %s -o %t.o
2 # RUN: llvm-dwarfdump -arch arm64 --debug-line --verify %t.o 2>&1 | FileCheck %s
3 # REQUIRES: system-darwin
5 # CHECK-NOT: error: .debug_line[0x{{[0-9a-f]+}}][0] has invalid file index 1 (valid values are [1,0]):
42 - sectname: __debug_abbrev
54 - sectname: __debug_info
83 - sectname: __debug_str
95 - sectname: __apple_names
107 content: 485341480100000002000000020000000C000000000000000100000001000600FFFFFFFF000000008973880BEB28616A3800000048000000B8000000010000003200000000000000BC000000010000003200000000000000
108 - sectname: __apple_objc
120 content: 485341480100000001000000000000000C000000000000000100000001000600FFFFFFFF
121 - sectname: __apple_namespac
133 content: 485341480100000001000000000000000C000000000000000100000001000600FFFFFFFF
134 - sectname: __apple_types
146 content: 48534148010000000100000000000000140000000000000003000000010006000300050004000B00FFFFFFFF
147 - sectname: __compact_unwind
159 content: '0000000000000000040000000000000200000000000000000000000000000000'
169 - sectname: __debug_line
190 - cmd: LC_BUILD_VERSION
248 - 'Apple clang version 16.0.0 (clang-1600.0.9.14)'
250 - '/Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk'
252 - '/Users/shubham/Development/llvm-project/build_ninja'
259 Tag: DW_TAG_compile_unit
260 Children: DW_CHILDREN_yes
262 - Attribute: DW_AT_producer
264 - Attribute: DW_AT_language
266 - Attribute: DW_AT_name
268 - Attribute: DW_AT_LLVM_sysroot
270 - Attribute: DW_AT_APPLE_sdk
272 - Attribute: DW_AT_stmt_list
273 Form: DW_FORM_sec_offset
274 - Attribute: DW_AT_comp_dir
276 - Attribute: DW_AT_low_pc
278 - Attribute: DW_AT_high_pc
281 Tag: DW_TAG_subprogram
282 Children: DW_CHILDREN_no
284 - Attribute: DW_AT_low_pc
286 - Attribute: DW_AT_high_pc
288 - Attribute: DW_AT_APPLE_omit_frame_ptr
289 Form: DW_FORM_flag_present
290 - Attribute: DW_AT_frame_base
291 Form: DW_FORM_exprloc
292 - Attribute: DW_AT_linkage_name
294 - Attribute: DW_AT_name
296 - Attribute: DW_AT_decl_file
298 - Attribute: DW_AT_decl_line
300 - Attribute: DW_AT_external
301 Form: DW_FORM_flag_present
343 StandardOpcodeLengths: [ 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1 ]
352 - Opcode: DW_LNS_extended_op
354 SubOpcode: DW_LNE_end_sequence