summaryrefslogtreecommitdiffstats
path: root/lld/test/wasm/export-table.test
blob: e2d05f00d5a7bc2c1a796147ade9bd3e6e4cde9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# RUN: llc -filetype=obj %p/Inputs/start.ll -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:       - ElemType:        FUNCREF
# 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
OpenPOWER on IntegriCloud