summaryrefslogtreecommitdiff
path: root/test/roundtrip/generate-global-names.txt
blob: e97bbf21c64c50c696a219f483210f7550e216ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
;;; TOOL: run-roundtrip
;;; ARGS: --stdout --generate-names
(module
  (global i32 (i32.const 42))
  (global (mut f32) (f32.const -1.5))
  (func (result i32)
    f32.const 3.0
    set_global 1
    get_global 0))
(;; STDOUT ;;;
(module
  (type $t0 (func (result i32)))
  (func $f0 (type $t0) (result i32)
    f32.const 0x1.8p+1 (;=3;)
    set_global $g1
    get_global $g0)
  (global $g0 i32 (i32.const 42))
  (global $g1 (mut f32) (f32.const -0x1.8p+0 (;=-1.5;))))
;;; STDOUT ;;)