summaryrefslogtreecommitdiff
path: root/test/reference-types.wast.fromBinary.noDebugInfo
diff options
context:
space:
mode:
authorAbbas Mashayekh <martianboy2005@gmail.com>2021-04-02 21:34:03 +0430
committerGitHub <noreply@github.com>2021-04-02 10:04:03 -0700
commitc59df4cda843ef11ad261f5c889dddc9a9d59d3b (patch)
tree123b923408082a8578bc9bad6cafe2b5aaeeedda /test/reference-types.wast.fromBinary.noDebugInfo
parentc75be5fc138f4f523a548758fa785cac310563fd (diff)
downloadbinaryen-c59df4cda843ef11ad261f5c889dddc9a9d59d3b.tar.gz
binaryen-c59df4cda843ef11ad261f5c889dddc9a9d59d3b.tar.bz2
binaryen-c59df4cda843ef11ad261f5c889dddc9a9d59d3b.zip
Reorder global definitions in Print pass (#3770)
This is needed to make sure globals are printed before element segments, where `global.get` can appear both as offset and an expression.
Diffstat (limited to 'test/reference-types.wast.fromBinary.noDebugInfo')
-rw-r--r--test/reference-types.wast.fromBinary.noDebugInfo6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/reference-types.wast.fromBinary.noDebugInfo b/test/reference-types.wast.fromBinary.noDebugInfo
index 5d168c185..5acf0871d 100644
--- a/test/reference-types.wast.fromBinary.noDebugInfo
+++ b/test/reference-types.wast.fromBinary.noDebugInfo
@@ -10,9 +10,6 @@
(type $externref_=>_funcref (func (param externref) (result funcref)))
(import "env" "import_global" (global $gimport$0 externref))
(import "env" "import_func" (func $fimport$0 (param externref) (result funcref)))
- (table $0 3 3 funcref)
- (elem (i32.const 0) $0 $1 $2)
- (elem declare func $27 $3)
(global $global$0 (mut externref) (ref.null extern))
(global $global$1 (mut funcref) (ref.null func))
(global $global$2 (mut funcref) (ref.func $3))
@@ -20,6 +17,9 @@
(global $global$4 (mut anyref) (ref.null extern))
(global $global$5 (mut anyref) (ref.null func))
(global $global$6 (mut anyref) (ref.func $3))
+ (table $0 3 3 funcref)
+ (elem (i32.const 0) $0 $1 $2)
+ (elem declare func $27 $3)
(event $event$0 (attr 0) (param i32))
(export "export_func" (func $fimport$0))
(export "export_global" (global $gimport$0))