brintos

brintos / llvm-project-archived public Read only

0
0
Text · 871 B · ce3b6f5 Raw
33 lines · plain
1# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %s -o %t.o2# RUN: wasm-ld -wrap nosuchsym -wrap foo -allow-undefined -o %t.wasm %t.o3# RUN: obj2yaml %t.wasm | FileCheck %s4 5.globl foo6.globl _start7 8foo:9  .functype foo () -> ()10  end_function11 12_start:13  .functype _start () -> ()14  call  foo15  end_function16 17# CHECK:      - Type:            IMPORT18# CHECK-NEXT:   Imports:19# CHECK-NEXT:     - Module:          env20# CHECK-NEXT:       Field:           __wrap_foo21# CHECK-NEXT:       Kind:            FUNCTION22# CHECK-NEXT        SigIndex:        023 24# CHECK:      - Type:            CODE25# CHECK-NEXT:   Functions:26# CHECK-NEXT:       Index:           127 28# CHECK:        FunctionNames:29# CHECK-NEXT:      - Index:           030# CHECK-NEXT:        Name:            __wrap_foo31# CHECK-NEXT:      - Index:           132# CHECK-NEXT:        Name:            _start33