summaryrefslogtreecommitdiff
path: root/llvm/test/ObjectYAML/wasm/invalid_global_weak.yaml
blob: c364075e2e45d0cbc536307d9d11afa998f375fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# 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