1# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t.o %s 2# RUN: wasm-ld -o %t.wasm %t.o 3# RUN: obj2yaml %t.wasm | FileCheck %s 4 5# Debug sections are allowed to contains references to non-live symbols that 6# then get GC'd. In this test the .debug_info section contains a reference to 7# 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, i32 11 12.globl _start 13_start: 14 .functype _start () -> () 15 end_function 16 17.section .debug_info,"",@ 18 .int32 foo 19 20foo: 21 22# CHECK: - Type: CUSTOM 23# CHECK-NEXT: Name: .debug_info 24# CHECK-NEXT: Payload: FFFFFFFF 25