From c59df4cda843ef11ad261f5c889dddc9a9d59d3b Mon Sep 17 00:00:00 2001 From: Abbas Mashayekh Date: Fri, 2 Apr 2021 21:34:03 +0430 Subject: 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. --- test/passes/asyncify_pass-arg=asyncify-addlist@foo.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/passes/asyncify_pass-arg=asyncify-addlist@foo.txt') diff --git a/test/passes/asyncify_pass-arg=asyncify-addlist@foo.txt b/test/passes/asyncify_pass-arg=asyncify-addlist@foo.txt index 8119cfc6a..e42be2b6e 100644 --- a/test/passes/asyncify_pass-arg=asyncify-addlist@foo.txt +++ b/test/passes/asyncify_pass-arg=asyncify-addlist@foo.txt @@ -3,9 +3,9 @@ (type $i32_=>_none (func (param i32))) (type $none_=>_i32 (func (result i32))) (import "env" "import" (func $import)) - (memory $0 1 2) (global $__asyncify_state (mut i32) (i32.const 0)) (global $__asyncify_data (mut i32) (i32.const 0)) + (memory $0 1 2) (export "asyncify_start_unwind" (func $asyncify_start_unwind)) (export "asyncify_stop_unwind" (func $asyncify_stop_unwind)) (export "asyncify_start_rewind" (func $asyncify_start_rewind)) -- cgit v1.2.3