summaryrefslogtreecommitdiff
path: root/test/roundtrip/apply-global-names.txt
blob: e5f49bec90e7b932bc3d28a191fa59fb9556a401 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
;;; TOOL: run-roundtrip
;;; ARGS: --stdout --generate-names
(module
  (import "m" "g" (global $g i32))
  (func)
  (table 1 funcref)
  (memory 1)

  (global i32 (global.get $g))
  (elem (global.get $g) 0)
  (data (global.get $g) "hi")
)
(;; STDOUT ;;;
(module
  (type $t0 (func))
  (import "m" "g" (global $m.g i32))
  (func $f0 (type $t0))
  (table $T0 1 funcref)
  (memory $M0 1)
  (global $g1 i32 (global.get $m.g))
  (elem $e0 (global.get $m.g) func $f0)
  (data $d0 (global.get $m.g) "hi"))
;;; STDOUT ;;)