Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / wasm / export-table.test
blob927eccef7ceddf6b366965afa8c44190b49d9b1a
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 --export-table flag creates a table export
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:           Flags:           [ HAS_MAX ]
13 # CHECK-NEXT:           Minimum:         0x1
14 # CHECK-NEXT:           Maximum:         0x1
15 # CHECK-NEXT:   - Type:
16 # CHECK:        - Type:            EXPORT
17 # CHECK-NEXT:     Exports:
18 # CHECK:            - Name:            __indirect_function_table
19 # CHECK-NEXT:         Kind:            TABLE
20 # CHECK-NEXT:         Index:           0