diff options
Diffstat (limited to 'test/unit.fromasm')
-rw-r--r-- | test/unit.fromasm | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/unit.fromasm b/test/unit.fromasm index daaf1359d..31c1d5b3d 100644 --- a/test/unit.fromasm +++ b/test/unit.fromasm @@ -519,4 +519,22 @@ ) (call $phi) ) + (func $useSetGlobal (result i32) + (set_global $Int + (i32.const 10) + ) + (set_global $Int + (i32.const 20) + ) + (set_global $Int + (i32.const 30) + ) + (get_global $Int) + ) + (func $usesSetGlobal2 (result i32) + (set_global $Int + (i32.const 40) + ) + (i32.const 50) + ) ) |