2018-03-10 00:30:44 +08:00
|
|
|
# RUN: yaml2obj < %s | not obj2yaml 2>&1 | FileCheck %s
|
|
|
|
|
|
|
|
--- !WASM
|
|
|
|
FileHeader:
|
|
|
|
Version: 0x00000001
|
|
|
|
Sections:
|
|
|
|
- Type: IMPORT
|
|
|
|
Imports:
|
|
|
|
- Module: fiz
|
|
|
|
Field: imported_global
|
|
|
|
Kind: GLOBAL
|
|
|
|
GlobalType: I32
|
|
|
|
GlobalMutable: false
|
|
|
|
- Type: CUSTOM
|
|
|
|
Name: linking
|
2019-01-16 09:34:48 +08:00
|
|
|
Version: 2
|
2018-03-10 00:30:44 +08:00
|
|
|
SymbolTable:
|
|
|
|
- Index: 0
|
|
|
|
Kind: GLOBAL
|
|
|
|
Name: imported_global
|
|
|
|
Flags: [ BINDING_WEAK, UNDEFINED ]
|
|
|
|
Global: 0
|
|
|
|
...
|
|
|
|
|
|
|
|
# CHECK: Error reading file: <stdin>: undefined weak global symbol
|