brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 395a5ea Raw
38 lines · plain
1# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t.o %s2# RUN: wasm-ld --export-if-defined=foo -o %t1.wasm %t.o3# RUN: obj2yaml %t1.wasm | FileCheck %s4 5# RUN: wasm-ld --export-if-defined=bar -o %t2.wasm %t.o6# RUN: obj2yaml %t2.wasm | FileCheck %s --check-prefixes=MISSING7 8.globl foo9foo:10  .functype foo () -> ()11  end_function12 13.globl _start14_start:15  .functype _start () -> ()16  end_function17 18#      CHECK:   - Type:            EXPORT19# CHECK-NEXT:     Exports:20# CHECK-NEXT:       - Name:            memory21# CHECK-NEXT:         Kind:            MEMORY22# CHECK-NEXT:         Index:           023# CHECK-NEXT:       - Name:            foo24# CHECK-NEXT:         Kind:            FUNCTION25# CHECK-NEXT:         Index:           026# CHECK-NEXT:       - Name:            _start27# CHECK-NEXT:         Kind:            FUNCTION28# CHECK-NEXT:         Index:           129 30#      MISSING:   - Type:            EXPORT31# MISSING-NEXT:     Exports:32# MISSING-NEXT:       - Name:            memory33# MISSING-NEXT:         Kind:            MEMORY34# MISSING-NEXT:         Index:           035# MISSING-NEXT:       - Name:            _start36# MISSING-NEXT:         Kind:            FUNCTION37# MISSING-NEXT:         Index:           038