summaryrefslogtreecommitdiff
path: root/test/ctor-eval/global-get-init.wast
diff options
context:
space:
mode:
Diffstat (limited to 'test/ctor-eval/global-get-init.wast')
-rw-r--r--test/ctor-eval/global-get-init.wast8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/ctor-eval/global-get-init.wast b/test/ctor-eval/global-get-init.wast
new file mode 100644
index 000000000..125e672d6
--- /dev/null
+++ b/test/ctor-eval/global-get-init.wast
@@ -0,0 +1,8 @@
+(module
+ (import "import" "global" (global $imported i32))
+ (func $test1 (export "test1")
+ ;; This should be safe to eval in theory, but the imported global stops us,
+ ;; so this function will not be optimized out.
+ ;; TODO: perhaps if we never use that global that is ok?
+ )
+)