From 3d2d891d7e1492d179cd8da7a618fbdd5efcca2c Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 16 Mar 2024 20:41:50 +0900 Subject: feat: add spec testsuites --- tests/fixtures/spec_testsuites/core/table-sub.wast | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tests/fixtures/spec_testsuites/core/table-sub.wast (limited to 'tests/fixtures/spec_testsuites/core/table-sub.wast') diff --git a/tests/fixtures/spec_testsuites/core/table-sub.wast b/tests/fixtures/spec_testsuites/core/table-sub.wast new file mode 100644 index 0000000..08787bd --- /dev/null +++ b/tests/fixtures/spec_testsuites/core/table-sub.wast @@ -0,0 +1,21 @@ +(assert_invalid + (module + (table $t1 10 funcref) + (table $t2 10 externref) + (func $f + (table.copy $t1 $t2 (i32.const 0) (i32.const 1) (i32.const 2)) + ) + ) + "type mismatch" +) + +(assert_invalid + (module + (table $t 10 funcref) + (elem $el externref) + (func $f + (table.init $t $el (i32.const 0) (i32.const 1) (i32.const 2)) + ) + ) + "type mismatch" +) -- cgit v1.2.3-70-g09d2