Skip to content

Commit 4e2770f

Browse files
committed
Move call immediate values to the instructions array
1 parent e6126f3 commit 4e2770f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/unittests/parser_expr_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ TEST(parser_expr, call_indirect_table_index)
455455
const auto code1_bin = i32_const(0) + "1100000b"_bytes;
456456
const auto [code, pos] = parse_expr(code1_bin, 0, {}, module);
457457
EXPECT_THAT(code.instructions,
458-
ElementsAre(Instr::i32_const, 0, 0, 0, 0, Instr::call_indirect, Instr::end));
458+
ElementsAre(Instr::i32_const, 0, 0, 0, 0, Instr::call_indirect, 0, 0, 0, 0, Instr::end));
459459

460460
const auto code2_bin = i32_const(0) + "1100010b"_bytes;
461461
EXPECT_THROW_MESSAGE(parse_expr(code2_bin, 0, {}, module), parser_error,

0 commit comments

Comments
 (0)