1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 11:33:24 +02:00
llvm-mirror/test/ObjectYAML/wasm/invalid_global_weak.yaml
Sam Clegg 33666d525d [WebAssembly] Add version to object file metadata
Summary: See https://github.com/WebAssembly/tool-conventions/issues/54

Subscribers: jfb, dschuff, jgravelle-google, aheejin, sunfish, llvm-commits

Differential Revision: https://reviews.llvm.org/D46069

llvm-svn: 330969
2018-04-26 18:15:32 +00:00

26 lines
671 B
YAML

# 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
Version: 1
SymbolTable:
- Index: 0
Kind: GLOBAL
Name: imported_global
Flags: [ BINDING_WEAK, UNDEFINED ]
Global: 0
...
# CHECK: Error reading file: <stdin>: undefined weak global symbol