Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / wasm / export-table-explicit.test
blob58f0032ce081de48cbe0888a7dac8e97b98eb0dd
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
11 # CHECK-NEXT:     Tables:
12 # CHECK-NEXT:       - Index:           0
13 # CHECK-NEXT:         ElemType:        FUNCREF
14 # CHECK-NEXT:         Limits:
15 # CHECK-NEXT:           Flags:           [ HAS_MAX ]
16 # CHECK-NEXT:           Minimum:         0x1
17 # CHECK-NEXT:           Maximum:         0x1
18 # CHECK-NEXT:   - Type:
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
31 # CHECK-NEXT:   - Type: