brintos

brintos / llvm-project-archived public Read only

0
0
Text · 813 B · 927ecce Raw
21 lines · plain
1# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %p/Inputs/start.s -o %t.start.o2# RUN: wasm-ld --export-table -o %t.wasm %t.start.o3# RUN: obj2yaml %t.wasm | FileCheck %s4 5# Verify the --export-table flag creates a table export6 7# CHECK:        - Type:            TABLE8# CHECK-NEXT:     Tables:9# CHECK-NEXT:       - Index:           010# CHECK-NEXT:         ElemType:        FUNCREF11# CHECK-NEXT:         Limits:12# CHECK-NEXT:           Flags:           [ HAS_MAX ]13# CHECK-NEXT:           Minimum:         0x114# CHECK-NEXT:           Maximum:         0x115# CHECK-NEXT:   - Type:16# CHECK:        - Type:            EXPORT17# CHECK-NEXT:     Exports:18# CHECK:            - Name:            __indirect_function_table19# CHECK-NEXT:         Kind:            TABLE20# CHECK-NEXT:         Index:           021