Skip to content

Commit

Permalink
Some more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rossberg committed Jul 3, 2024
1 parent ff86dc2 commit d6ea0c9
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test/core/token.wast
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@
)
"unknown operator"
)
(assert_malformed
(module quote
"(func (block $l (i32.const 0) (br_table 0$\"l\")))"
)
"unknown operator"
)

(module
(func (block $l (i32.const 0) (br_table $l 0)))
Expand All @@ -98,6 +104,12 @@
)
"unknown label"
)
(assert_malformed
(module quote
"(func (block $l (i32.const 0) (br_table $\"l\"0)))"
)
"unknown operator"
)

(module
(func (block $l (i32.const 0) (br_table $l $l)))
Expand All @@ -108,6 +120,12 @@
)
"unknown label"
)
(assert_malformed
(module quote
"(func (block $l (i32.const 0) (br_table $\"l\"$l)))"
)
"unknown operator"
)

(module
(func (block $l0 (i32.const 0) (br_table $l0)))
Expand Down

0 comments on commit d6ea0c9

Please sign in to comment.