1 # RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %p/Inputs/start.s -o %t.start.o
2 # RUN: wasm-ld --export-table -o %t.wasm %t.start.o
3 # RUN: obj2yaml %t.wasm | FileCheck %s
5 # Verify the interaction between --export-table and declared tables
7 .globl __indirect_function_table
8 .tabletype __indirect_function_table,externref
10 # CHECK: - Type: TABLE
12 # CHECK-NEXT: - Index: 0
13 # CHECK-NEXT: ElemType: FUNCREF
15 # CHECK-NEXT: Flags: [ HAS_MAX ]
16 # CHECK-NEXT: Minimum: 0x1
17 # CHECK-NEXT: Maximum: 0x1
20 # CHECK: - Type: EXPORT
21 # CHECK-NEXT: Exports:
22 # CHECK-NEXT: - Name: memory
23 # CHECK-NEXT: Kind: MEMORY
24 # CHECK-NEXT: Index: 0
25 # CHECK-NEXT: - Name: _start
26 # CHECK-NEXT: Kind: FUNCTION
27 # CHECK-NEXT: Index: 0
28 # CHECK-NEXT: - Name: __indirect_function_table
29 # CHECK-NEXT: Kind: TABLE
30 # CHECK-NEXT: Index: 0