summaryrefslogtreecommitdiffstats
path: root/llvm/test/ObjectYAML/wasm/global_section.yaml
blob: 73e50b57f5dc37c0f441678bb362ed53165bdac0 (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
26
27
# RUN: yaml2obj %s | obj2yaml | FileCheck %s
--- !WASM
FileHeader:
  Version:         0x00000001
Sections:
  - Type:            GLOBAL
    Globals:         
      - Index:       0
        Type:        I32
        Mutable:     false
        InitExpr:
          Opcode:          I64_CONST
          Value:           -5
...
# CHECK: --- !WASM
# CHECK: FileHeader:
# CHECK:   Version:           0x00000001
# CHECK: Sections:
# CHECK:  - Type:            GLOBAL
# CHECK:    Globals:         
# CHECK:      - Index:       0
# CHECK:        Type:        I32
# CHECK:        Mutable:     false
# CHECK:        InitExpr:
# CHECK:          Opcode:          I64_CONST
# CHECK:          Value:           -5
# CHECK: ...
OpenPOWER on IntegriCloud