26 lines
599 B
YAML
26 lines
599 B
YAML
# 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
|