diff options
Diffstat (limited to 'test/example')
-rw-r--r-- | test/example/c-api-kitchen-sink.txt | 6 | ||||
-rw-r--r-- | test/example/module-splitting.txt | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/test/example/c-api-kitchen-sink.txt b/test/example/c-api-kitchen-sink.txt index a0f28699b..4cad3e659 100644 --- a/test/example/c-api-kitchen-sink.txt +++ b/test/example/c-api-kitchen-sink.txt @@ -36,6 +36,8 @@ BinaryenFeatureAll: 8191 (type $i32_=>_none (func (param i32))) (type $i32_f64_=>_f32 (func (param i32 f64) (result f32))) (import "module" "base" (func $an-imported (param i32 f64) (result f32))) + (global $a-global i32 (i32.const 7)) + (global $a-mutable-global (mut f32) (f32.const 7.5)) (memory $0 (shared 1 256)) (data (i32.const 10) "hello, world") (data "I am passive") @@ -43,8 +45,6 @@ BinaryenFeatureAll: 8191 (table $0 1 1 funcref) (elem $0 (table $0) (i32.const 0) func "$kitchen()sinker") (elem $passive func "$kitchen()sinker") - (global $a-global i32 (i32.const 7)) - (global $a-mutable-global (mut f32) (f32.const 7.5)) (event $a-event (attr 0) (param i32)) (export "kitchen_sinker" (func "$kitchen()sinker")) (export "mem" (memory $0)) @@ -2459,12 +2459,12 @@ module s-expr printed (in memory, caller-owned): validation: 0 (module (type $none_=>_none (func)) + (global $a-global i32 (i32.const 125)) (memory $0 1 256) (data (i32.const 10) "hello, world") (data (global.get $a-global) "segment data 2") (table $0 1 1 funcref) (elem $0 (i32.const 0) $fn0 $fn1 $fn2) - (global $a-global i32 (i32.const 125)) (export "export0" (func $fn0)) (export "export1" (func $fn1)) (export "export2" (func $fn2)) diff --git a/test/example/module-splitting.txt b/test/example/module-splitting.txt index 93a766652..f9e0b313f 100644 --- a/test/example/module-splitting.txt +++ b/test/example/module-splitting.txt @@ -13,18 +13,18 @@ Secondary: Before: (module (type $i32_=>_none (func (param i32))) + (global $glob (mut i32) (i32.const 7)) (memory $mem (shared 3 42)) (table $tab 3 42 funcref) - (global $glob (mut i32) (i32.const 7)) (event $e (attr 0) (param i32)) ) Keeping: <none> After: (module (type $i32_=>_none (func (param i32))) + (global $glob (mut i32) (i32.const 7)) (memory $mem (shared 3 42)) (table $tab 3 42 funcref) - (global $glob (mut i32) (i32.const 7)) (event $e (attr 0) (param i32)) (export "%memory" (memory $mem)) (export "%table" (table $tab)) @@ -75,9 +75,9 @@ Secondary: Before: (module (type $i32_=>_none (func (param i32))) + (global $glob (mut i32) (i32.const 7)) (memory $mem (shared 3 42)) (table $tab 3 42 funcref) - (global $glob (mut i32) (i32.const 7)) (event $e (attr 0) (param i32)) (export "mem" (memory $mem)) (export "tab" (table $tab)) @@ -88,9 +88,9 @@ Keeping: <none> After: (module (type $i32_=>_none (func (param i32))) + (global $glob (mut i32) (i32.const 7)) (memory $mem (shared 3 42)) (table $tab 3 42 funcref) - (global $glob (mut i32) (i32.const 7)) (event $e (attr 0) (param i32)) (export "mem" (memory $mem)) (export "tab" (table $tab)) |