42 lines · plain
1# Demonstrate dumping DW_AT_language_version without an2# accompanying DW_AT_language_name.3# RUN: llvm-mc -triple=x86_64--linux -filetype=obj -o %t.o < %s4# RUN: llvm-dwarfdump -v %t.o | FileCheck %s --check-prefix=VERBOSE5# RUN: llvm-dwarfdump %t.o | FileCheck %s --check-prefix=NO-VERBOSE6 7# VERBOSE: .debug_abbrev contents:8# VERBOSE: DW_AT_language_version DW_FORM_data49# VERBOSE: DW_AT_language_version DW_FORM_data210# VERBOSE: .debug_info contents:11# VERBOSE: DW_AT_language_version [DW_FORM_data4] (201402)12# VERBOSE: DW_AT_language_version [DW_FORM_data2] (0)13 14# NO-VERBOSE: .debug_info contents:15# NO-VERBOSE: DW_AT_language_version (201402)16# NO-VERBOSE: DW_AT_language_version (0)17 18 .section .debug_abbrev,"",@progbits19 .byte 1 # Abbreviation Code20 .byte 17 # DW_TAG_compile_unit21 .byte 1 # DW_CHILDREN_no 22 .ascii "\221\001" # DW_AT_language_version23 .byte 6 # DW_FORM_data424 .ascii "\221\001" # DW_AT_language_version25 .byte 5 # DW_FORM_data226 .byte 0 # EOM(1)27 .byte 0 # EOM(2)28 .byte 0 # EOM(3)29 30 .section .debug_info,"",@progbits31 .long .Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit32.Ldebug_info_start0:33 .short 5 # DWARF version number34 .byte 1 # Unit type35 .byte 8 # Address Size (in bytes)36 .long .debug_abbrev # Offset Into Abbrev. Section37 .byte 1 # Abbrev [1] DW_TAG_compile_unit38 .long 201402 # DW_AT_language_version39 .short 0 # DW_AT_language_version40 .byte 0 41.Ldebug_info_end0:42