xref: /llvm-project/llvm/test/ObjectYAML/wasm/invalid_global_weak.yaml (revision 56c587adfd2999a5f096cf49266552de931aa1e3)
1# RUN: yaml2obj < %s | not obj2yaml 2>&1 | FileCheck %s
2
3--- !WASM
4FileHeader:
5  Version:         0x00000001
6Sections:
7  - Type:            IMPORT
8    Imports:
9      - Module:          fiz
10        Field:           imported_global
11        Kind:            GLOBAL
12        GlobalType:      I32
13        GlobalMutable:   false
14  - Type:            CUSTOM
15    Name:            linking
16    Version:         2
17    SymbolTable:
18      - Index:           0
19        Kind:            GLOBAL
20        Name:            imported_global
21        Flags:           [ BINDING_WEAK, UNDEFINED ]
22        Global:          0
23...
24
25# CHECK: Error reading file: <stdin>: undefined weak global symbol
26