llvm.org GIT mirror llvm / e286417 test / tools / llvm-nm / wasm / imports.yaml
e286417

Tree @e286417 (Download .tar.gz)

imports.yaml @e286417raw · history · blame

# 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

# CHECK:    U bar
# CHECK:    U foo