brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · e798401 Raw
53 lines · plain
1# RUN: llvm-mc %s -filetype obj -triple i686-pc-linux -o %t2 3## Check we don't crash when parsing invalid expression opcode.4# RUN: llvm-dwarfdump %t | FileCheck %s5# CHECK:      DW_TAG_GNU_call_site_parameter6# CHECK-NEXT:  DW_AT_location  (<decoding error> ff)7 8## Check verifier reports an error.9# RUN: not llvm-dwarfdump -verify %t 2>&1 | FileCheck %s --check-prefix=VERIFY10# VERIFY:      DIE contains invalid DWARF expression:11# VERIFY:      DW_TAG_GNU_call_site_parameter12# VERIFY-NEXT:   DW_AT_location    [DW_FORM_exprloc] (<decoding error> ff)13 14.section  .debug_info,"",@progbits15  .long  0x1216  .value  0x417  .long  018  .byte  0x419 20  .uleb128 0x1 # DW_TAG_compile_unit [1]21  .long  022  .byte  0x023 24  .uleb128 0x2  # DW_TAG_GNU_call_site_parameter [2]25  .uleb128 0x1  # Expression size.26  .byte  0xff   # Broken expression.27 28  .byte  0      # End mark.29  .byte  0      # End mark.30 31.section .debug_abbrev,"",@progbits32  .uleb128 0x1    # ID [1]33  .uleb128 0x11   # DW_TAG_compile_unit, DW_CHILDREN_yes34  .byte  0x135  .uleb128 0x25   # DW_AT_producer, DW_FORM_strp36  .uleb128 0xe37  .uleb128 0x13   # DW_AT_language, DW_FORM_data138  .uleb128 0xb39  .byte  040  .byte  041 42  .uleb128 0x2    # ID [2]43  .uleb128 0x410a # DW_TAG_GNU_call_site_parameter, DW_CHILDREN_no44  .byte  045  .uleb128 0x2    # DW_AT_location, DW_FORM_exprloc46  .uleb128 0x1847  .byte  048  .byte  049  .byte  050 51.section .debug_str,"MS",@progbits,152.string "test"53