summaryrefslogtreecommitdiff
path: root/test/lit/merge
diff options
context:
space:
mode:
Diffstat (limited to 'test/lit/merge')
-rw-r--r--test/lit/merge/names.wat12
-rw-r--r--test/lit/merge/renamings.wat11
2 files changed, 11 insertions, 12 deletions
diff --git a/test/lit/merge/names.wat b/test/lit/merge/names.wat
index 4562af58b..c4e814649 100644
--- a/test/lit/merge/names.wat
+++ b/test/lit/merge/names.wat
@@ -12,13 +12,13 @@
;; CHECK: (type $4 (func (param (ref $u))))
- ;; CHECK: (global $global$0 i32 (i32.const 0))
+ ;; CHECK: (global $glob0 i32 (i32.const 0))
- ;; CHECK: (global $glob2 i32 (i32.const 0))
+ ;; CHECK: (global $global$1 i32 (i32.const 0))
- ;; CHECK: (global $global$2 i32 (i32.const 0))
+ ;; CHECK: (global $glob2 i32 (i32.const 0))
- ;; CHECK: (global $glob0 i32 (i32.const 0))
+ ;; CHECK: (global $global$3 i32 (i32.const 0))
;; CHECK: (memory $mem0 0)
@@ -54,7 +54,7 @@
;; CHECK: (export "g0" (global $glob0))
- ;; CHECK: (export "g1" (global $global$2))
+ ;; CHECK: (export "g1" (global $global$1))
;; CHECK: (export "m0" (memory $mem0))
@@ -80,7 +80,7 @@
;; CHECK: (export "g2" (global $glob2))
- ;; CHECK: (export "g3" (global $global$0))
+ ;; CHECK: (export "g3" (global $global$3))
;; CHECK: (export "tag2" (tag $tag2))
diff --git a/test/lit/merge/renamings.wat b/test/lit/merge/renamings.wat
index 4d1c32c5a..c6a22542a 100644
--- a/test/lit/merge/renamings.wat
+++ b/test/lit/merge/renamings.wat
@@ -23,21 +23,20 @@
;; CHECK: (import "elsewhere" "some.tag" (tag $imported (param f64)))
- ;; CHECK: (global $bar_2 i32 (i32.const 4))
-
- ;; CHECK: (global $other i32 (i32.const 3))
-
- ;; CHECK: (global $bar i32 (i32.const 2))
-
;; CHECK: (global $foo i32 (i32.const 1))
(global $foo i32 (i32.const 1))
;; This global has a conflict in second.wat, and so second.wat's $bar
;; will be renamed.
+ ;; CHECK: (global $bar i32 (i32.const 2))
(global $bar i32 (i32.const 2))
;; This memory has a conflict in second.wat, and so second.wat's $foo
;; will be renamed.
+ ;; CHECK: (global $other i32 (i32.const 3))
+
+ ;; CHECK: (global $bar_2 i32 (i32.const 4))
+
;; CHECK: (memory $foo 10 20)
(memory $foo 10 20)