Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions test/regress.failures
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
test/regress/ext:threads/atomic_wait32_0.bin.wast
test/regress/ext:threads/atomic_wait64_0.bin.wast
test/regress/ext:gc/zdrop_657.bin.wast
test/regress/ext:gc/zcopy_656.bin.wast
11 changes: 11 additions & 0 deletions test/regress/ext:gc/zcopy_656.bin.wast
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
(module definition binary
"\00\61\73\6d\01\00\00\00\01\96\80\80\80\00\05\50"
"\00\5f\00\50\01\00\5f\00\5e\63\00\01\5e\63\01\01"
"\60\00\01\7f\03\82\80\80\80\00\01\04\07\85\80\80"
"\80\00\01\01\66\00\00\0a\ac\80\80\80\00\01\a6\80"
"\80\80\00\02\01\64\02\01\64\03\41\02\fb\07\02\21"
"\00\41\02\fb\07\03\21\01\20\00\41\00\20\01\41\00"
"\41\02\fb\11\02\03\41\0b\0b"
)
(module instance)
(assert_return (invoke "f") (i32.const 0xb))
11 changes: 11 additions & 0 deletions test/regress/ext:gc/zcopy_656.wast
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
(module
(type $base (sub (struct))) (type $der (sub $base (struct)))
(type $abase (array (mut (ref null $base)))) (type $ader (array (mut (ref null $der))))
(func (export "f") (result i32)
(local $t (ref $abase)) (local $s (ref $ader))
(local.set $t (array.new_default $abase (i32.const 2)))
(local.set $s (array.new_default $ader (i32.const 2)))
(array.copy $abase $ader (local.get $t) (i32.const 0) (local.get $s) (i32.const 0) (i32.const 2))
(i32.const 11)))

(assert_return (invoke "f") (i32.const 11))
10 changes: 10 additions & 0 deletions test/regress/ext:gc/zdrop_657.bin.wast
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
(module definition binary
"\00\61\73\6d\01\00\00\00\01\88\80\80\80\00\02\5e"
"\78\01\60\00\01\7f\03\82\80\80\80\00\01\01\07\85"
"\80\80\80\00\01\01\66\00\00\0c\81\80\80\80\00\01"
"\0a\96\80\80\80\00\01\90\80\80\80\00\00\fc\09\00"
"\41\00\41\00\fb\09\00\00\1a\41\21\0b\0b\85\80\80"
"\80\00\01\01\02\61\62"
)
(module instance)
(assert_return (invoke "f") (i32.const 0x21))
10 changes: 10 additions & 0 deletions test/regress/ext:gc/zdrop_657.wast
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
(module
(data $d "ab")
(type $a (array (mut i8)))
(func (export "f") (result i32)
(data.drop $d)
(drop (array.new_data $a $d (i32.const 0) (i32.const 0))) ;; in bounds: a zero-length array
(i32.const 33))
)

(assert_return (invoke "f") (i32.const 33))
Loading