summaryrefslogtreecommitdiff
path: root/test/passes/func-metrics.wast
diff options
context:
space:
mode:
Diffstat (limited to 'test/passes/func-metrics.wast')
-rw-r--r--test/passes/func-metrics.wast9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/passes/func-metrics.wast b/test/passes/func-metrics.wast
index 5b16848ea..e95d819d9 100644
--- a/test/passes/func-metrics.wast
+++ b/test/passes/func-metrics.wast
@@ -122,4 +122,13 @@
(call $waka)
)
)
+(module ;; various globals
+ (type $0 (func (result i32)))
+ (import "env" "STACKTOP" (global $gimport$0 i32))
+ (global $global$0 (mut i32) (global.get $gimport$0))
+ (export "stackSave" (func $0))
+ (func $0 (; 0 ;) (type $0) (result i32)
+ (global.get $global$0)
+ )
+)