summaryrefslogtreecommitdiff
path: root/test/lit/ctor-eval
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2024-07-29 11:37:55 -0700
committerGitHub <noreply@github.com>2024-07-29 11:37:55 -0700
commiteac08461444da84e20d0641e429db7b03e45a21c (patch)
tree902da6a22d0b7e8ae49c92173f687adf4fbf56e2 /test/lit/ctor-eval
parentf938154a44ae4dd2733537c5683ebe2eeb1989a2 (diff)
downloadbinaryen-eac08461444da84e20d0641e429db7b03e45a21c.tar.gz
binaryen-eac08461444da84e20d0641e429db7b03e45a21c.tar.bz2
binaryen-eac08461444da84e20d0641e429db7b03e45a21c.zip
Generalize Literal::externalize/internalize for strings and shareability (#6784)
Diffstat (limited to 'test/lit/ctor-eval')
-rw-r--r--test/lit/ctor-eval/shared-i31.wast9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/lit/ctor-eval/shared-i31.wast b/test/lit/ctor-eval/shared-i31.wast
index 2c1d8da59..fe79ce412 100644
--- a/test/lit/ctor-eval/shared-i31.wast
+++ b/test/lit/ctor-eval/shared-i31.wast
@@ -17,6 +17,15 @@
(i32.const 42)
)
)
+ ;; Also externalizing and internalizing works: this code can be precomputed
+ ;; and hence removed.
+ (drop
+ (any.convert_extern
+ (extern.convert_any
+ (global.get $global)
+ )
+ )
+ )
(global.get $global)
)