1# RUN: llvm-mc -triple=wasm32 -filetype=obj %p/Inputs/comdat1.s -o %t1.o 2# RUN: llvm-mc -triple=wasm32 -filetype=obj %p/Inputs/comdat2.s -o %t2.o 3# RUN: llvm-mc -triple=wasm32 -filetype=obj %s -o %t.o 4# RUN: wasm-ld -o %t.wasm %t.o %t1.o %t2.o 5# RUN: obj2yaml %t.wasm | FileCheck %s 6 7 .functype foo () -> () 8 9 .globl _start 10 .type _start,@function 11_start: 12 .functype _start () -> () 13 call foo 14 end_function 15 16 17# Check that we got 1 copy of each of the .debug_foo sections from the 2 object 18# files, and that they came from the same object. 19# CHECK: - Type: CUSTOM 20# CHECK-NEXT: Name: .debug_foo 21# CHECK-NEXT: Payload: 010000007B00000000000000 22