summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-nm/wasm/exports.yaml
blob: c8cb2db0db73274a75f63085ef6746b4dc6cbd69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# RUN: yaml2obj < %s | llvm-nm - | FileCheck %s

# That wasm exports of functions and globals are displayed as global data and
# code symbols.

--- !WASM
FileHeader:
  Version:         0x00000001
Sections:
  - Type:            TYPE
    Signatures:
      - ReturnType:      I32
        ParamTypes:
          - I32
  - Type:            EXPORT
    Exports:
      - Name:            foo
        Kind:            FUNCTION
        Index:           0x00000004
      - Name:            bar
        Kind:            GLOBAL
        Index:           0x00000002

# CHECK: 00000002 D bar
# CHECK: 00000004 T foo
OpenPOWER on IntegriCloud