zig/deps/lld/test/wasm/import-table.test

17 lines
585 B
Plaintext
Raw Normal View History

2018-08-05 05:47:16 +08:00
# RUN: llc -filetype=obj %p/Inputs/start.ll -o %t.start.o
# RUN: wasm-ld --import-table -o %t.wasm %t.start.o
# RUN: obj2yaml %t.wasm | FileCheck %s
# Verify the --import-table flag creates a table import
# CHECK: - Type: IMPORT
# CHECK-NEXT: Imports:
# CHECK-NEXT: - Module: env
# CHECK-NEXT: Field: __indirect_function_table
# CHECK-NEXT: Kind: TABLE
# CHECK-NEXT: Table:
2019-02-08 06:07:18 +08:00
# CHECK-NEXT: ElemType: FUNCREF
2018-08-05 05:47:16 +08:00
# CHECK-NEXT: Limits:
# CHECK-NEXT: Initial: 0x00000001