29 lines
666 B
YAML
29 lines
666 B
YAML
|
# 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
|