From 68dc2eddc24844c7582cafa85afeb4023a47888f Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Mon, 12 Jun 2017 16:50:28 -0700 Subject: Support new result syntax for if/loop/block (#1047) Support both syntax formats in input since the old spec tests still need to be parsable. --- test/passes/simplify-locals-notee.wast | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/passes/simplify-locals-notee.wast') diff --git a/test/passes/simplify-locals-notee.wast b/test/passes/simplify-locals-notee.wast index e7b827f55..33f891e61 100644 --- a/test/passes/simplify-locals-notee.wast +++ b/test/passes/simplify-locals-notee.wast @@ -8,9 +8,9 @@ (set_local $x (i32.const 1)) (if (get_local $x) (nop)) (if (get_local $x) (nop)) - (set_local $y (if i32 (i32.const 2) (i32.const 3) (i32.const 4))) + (set_local $y (if (result i32) (i32.const 2) (i32.const 3) (i32.const 4))) (drop (get_local $y)) - (set_local $z (block i32 (i32.const 5))) + (set_local $z (block (result i32) (i32.const 5))) (drop (get_local $z)) (if (i32.const 6) (set_local $a (i32.const 7)) -- cgit v1.2.3