2020-05-21 12:35:18 +08:00
|
|
|
# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %p/Inputs/start.s -o %t.start.o
|
2018-05-05 09:23:07 +08:00
|
|
|
# RUN: wasm-ld --export-table -o %t.wasm %t.start.o
|
2018-03-28 01:38:51 +08:00
|
|
|
# RUN: obj2yaml %t.wasm | FileCheck %s
|
|
|
|
|
|
|
|
# Verify the --export-table flag creates a table export
|
|
|
|
|
|
|
|
# CHECK: - Type: TABLE
|
|
|
|
# CHECK-NEXT: Tables:
|
2019-01-08 14:25:55 +08:00
|
|
|
# CHECK-NEXT: - ElemType: FUNCREF
|
2018-03-28 01:38:51 +08:00
|
|
|
# CHECK-NEXT: Limits:
|
|
|
|
# CHECK-NEXT: Flags: [ HAS_MAX ]
|
|
|
|
# CHECK-NEXT: Initial: 0x00000001
|
|
|
|
# CHECK-NEXT: Maximum: 0x00000001
|
|
|
|
# CHECK-NEXT: - Type:
|
|
|
|
# CHECK: - Type: EXPORT
|
|
|
|
# CHECK-NEXT: Exports:
|
|
|
|
# CHECK: - Name: __indirect_function_table
|
|
|
|
# CHECK-NEXT: Kind: TABLE
|
|
|
|
# CHECK-NEXT: Index: 0
|