You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
813 B
21 lines
813 B
# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %p/Inputs/start.s -o %t.start.o
|
|
# RUN: wasm-ld --export-table -o %t.wasm %t.start.o
|
|
# RUN: obj2yaml %t.wasm | FileCheck %s
|
|
|
|
# Verify the --export-table flag creates a table export
|
|
|
|
# CHECK: - Type: TABLE
|
|
# CHECK-NEXT: Tables:
|
|
# CHECK-NEXT: - Index: 0
|
|
# CHECK-NEXT: ElemType: FUNCREF
|
|
# CHECK-NEXT: Limits:
|
|
# CHECK-NEXT: Flags: [ HAS_MAX ]
|
|
# CHECK-NEXT: Initial: 0x1
|
|
# CHECK-NEXT: Maximum: 0x1
|
|
# CHECK-NEXT: - Type:
|
|
# CHECK: - Type: EXPORT
|
|
# CHECK-NEXT: Exports:
|
|
# CHECK: - Name: __indirect_function_table
|
|
# CHECK-NEXT: Kind: TABLE
|
|
# CHECK-NEXT: Index: 0
|