llvm-project
18 строк · 734.0 Байт
1# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %p/Inputs/start.s -o %t.start.o
2# RUN: wasm-ld --export-table --growable-table -o %t.wasm %t.start.o
3# RUN: obj2yaml %t.wasm | FileCheck %s
4
5# Verify the --growable-table flag creates a growable table
6
7# CHECK: - Type: TABLE
8# CHECK-NEXT: Tables:
9# CHECK-NEXT: - Index: 0
10# CHECK-NEXT: ElemType: FUNCREF
11# CHECK-NEXT: Limits:
12# CHECK-NEXT: Minimum: 0x1
13# CHECK-NEXT: - Type:
14# CHECK: - Type: EXPORT
15# CHECK-NEXT: Exports:
16# CHECK: - Name: __indirect_function_table
17# CHECK-NEXT: Kind: TABLE
18# CHECK-NEXT: Index: 0
19