Skip to content

Commit 9571958

Browse files
committed
add Wasmi specific if.wast test case
1 parent 7c4fe46 commit 9571958

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

crates/wast/tests/local/if.wast

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
(module
2+
(func (export "if.only-then.diverging")
3+
(if
4+
(i32.const 0) ;; false
5+
(then
6+
(br 0)
7+
)
8+
)
9+
)
10+
)

crates/wast/tests/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ macro_rules! expand_tests {
202202
fn wasmi_wide_arithmetic("../../local/wide-arithmetic");
203203
fn wasmi_replace_result("../../local/replace-result");
204204
fn wasmi_local_tee("../../local/local-tee");
205+
fn wasmi_if("../../local/if");
205206

206207
// Wasm `simd` tests
207208
fn wasm_simd_address("simd_address");

0 commit comments

Comments
 (0)