brintos

brintos / llvm-project-archived public Read only

0
0
Text · 706 B · f0e9ed2 Raw
25 lines · plain
1# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t.o %s2# RUN: wasm-ld -o %t.wasm %t.o3# RUN: obj2yaml %t.wasm | FileCheck %s4 5# Debug sections are allowed to contains references to non-live symbols that6# then get GC'd.  In this test the .debug_info section contains a reference to7# foo which is not otherwise used and will not be marked a live in the output.8# Verify the tombstone value is written to debug_info section.9 10.globaltype foo, i3211 12.globl  _start13_start:14  .functype _start () -> ()15  end_function16 17.section .debug_info,"",@18  .int32 foo19 20foo:21 22# CHECK:       - Type:            CUSTOM23# CHECK-NEXT:    Name:            .debug_info24# CHECK-NEXT:    Payload:         FFFFFFFF25