Skip to content

Commit 0b6f675

Browse files
authored
Re-add test that fails with a bottom type (WebAssembly#93)
The original commit to add a bottom type removed this test as it would now unexpectedly validate. Now that a bottom type is removed it would be good to keep it.
1 parent c90e289 commit 0b6f675

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

test/core/unreached-invalid.wast

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,21 @@
536536
"type mismatch"
537537
)
538538

539+
(assert_invalid
540+
(module (func $type-br_table-label-num-vs-label-num-after-unreachable
541+
(block (result f64)
542+
(block (result f32)
543+
(unreachable)
544+
(br_table 0 1 1 (i32.const 1))
545+
)
546+
(drop)
547+
(f64.const 0)
548+
)
549+
(drop)
550+
))
551+
"type mismatch"
552+
)
553+
539554
(assert_invalid
540555
(module (func $type-block-value-nested-unreachable-num-vs-void
541556
(block (i32.const 3) (block (unreachable)))

0 commit comments

Comments
 (0)