summaryrefslogtreecommitdiff
path: root/test/passes/Oz_fuzz-exec_all-features.wast
diff options
context:
space:
mode:
Diffstat (limited to 'test/passes/Oz_fuzz-exec_all-features.wast')
-rw-r--r--test/passes/Oz_fuzz-exec_all-features.wast13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/passes/Oz_fuzz-exec_all-features.wast b/test/passes/Oz_fuzz-exec_all-features.wast
index a41e2bf70..54d93c9d0 100644
--- a/test/passes/Oz_fuzz-exec_all-features.wast
+++ b/test/passes/Oz_fuzz-exec_all-features.wast
@@ -497,6 +497,19 @@
(array.get_u $bytes (local.get $x) (i32.const 1))
)
)
+ (func "array.init-packed"
+ (local $x (ref null $bytes))
+ (local.set $x
+ (array.init $bytes
+ (i32.const -11512)
+ (rtt.canon $bytes)
+ )
+ )
+ ;; The value should be be -11512 & 255 => 8
+ (call $log
+ (array.get_u $bytes (local.get $x) (i32.const 0))
+ )
+ )
)
(module
(type $[mut:i8] (array (mut i8)))