summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-nm/wasm/imports.yaml
blob: bf2005be9e39fc5a6737bff5d5830b8232bd5eb6 (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
26
27
28
29
# RUN: yaml2obj < %s | llvm-nm - | FileCheck -strict-whitespace %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
  - Type:            CUSTOM
    Name:            "linking"
    DataSize:        0
    DataAlignment:   0

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