2018-03-28 01:38:51 +08:00
|
|
|
# RUN: llc -filetype=obj %p/Inputs/start.ll -o %t.start.o
|
2018-05-05 09:23:07 +08:00
|
|
|
# RUN: wasm-ld --import-table -o %t.wasm %t.start.o
|
2018-03-28 01:38:51 +08:00
|
|
|
# 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:
|
|
|
|
# CHECK-NEXT: ElemType: ANYFUNC
|
|
|
|
# CHECK-NEXT: Limits:
|
|
|
|
# CHECK-NEXT: Flags: [ HAS_MAX ]
|
|
|
|
# CHECK-NEXT: Initial: 0x00000001
|
|
|
|
# CHECK-NEXT: Maximum: 0x00000001
|
|
|
|
|