summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-nm/wasm/imports.yaml
blob: 3842d678ca7fbff6cd9d0ca34e9da928b42b1cb0 (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

--- !WASM
FileHeader:
  Version:         0x00000001
Sections:
  - Type:            TYPE
    Signatures:
      - ReturnType:      I32
        ParamTypes:
          - I32
  - Type:            IMPORT
    Imports:
      - Module:          env
        Field:           foo
        Kind:            FUNCTION
        SigIndex:        0
      - Module:          env
        Field:           bar
        Kind:            GLOBAL
        GlobalType:      I32
        GlobalMutable:   false

# CHECK:    U bar
# CHECK:    U foo
OpenPOWER on IntegriCloud