brintos

brintos / llvm-project-archived public Read only

0
0
Text · 724 B · 4fd5556 Raw
22 lines · plain
1# RUN: llvm-mc -triple=wasm32 -filetype=obj %p/Inputs/comdat1.s -o %t1.o2# RUN: llvm-mc -triple=wasm32 -filetype=obj %p/Inputs/comdat2.s -o %t2.o3# RUN: llvm-mc -triple=wasm32 -filetype=obj %s -o %t.o4# RUN: wasm-ld  -o %t.wasm %t.o %t1.o %t2.o5# RUN: obj2yaml %t.wasm | FileCheck %s6 7        .functype foo () -> ()8 9        .globl  _start10        .type  _start,@function11_start:12        .functype _start () -> ()13        call foo14        end_function15 16 17# Check that we got 1 copy of each of the .debug_foo sections from the 2 object18# files, and that they came from the same object.19# CHECK:  - Type:            CUSTOM20# CHECK-NEXT:    Name:            .debug_foo21# CHECK-NEXT:    Payload:         010000007B0000000000000022