| Index: test/cctest/wasm/test-run-wasm.cc
|
| diff --git a/test/cctest/wasm/test-run-wasm.cc b/test/cctest/wasm/test-run-wasm.cc
|
| index da241541b8eb532a6324de7b1b3fc7016a73ba17..ee532ae807174b823d49b75440f0794d353e9c3c 100644
|
| --- a/test/cctest/wasm/test-run-wasm.cc
|
| +++ b/test/cctest/wasm/test-run-wasm.cc
|
| @@ -905,6 +905,15 @@ WASM_EXEC_TEST(Br_height) {
|
| }
|
| }
|
|
|
| +WASM_EXEC_TEST(Regression_660262) {
|
| + TestingModule module(execution_mode);
|
| + module.AddMemoryElems<int32_t>(8);
|
| + WasmRunner<int32_t> r(&module);
|
| + BUILD(r, kExprI8Const, 0x00, kExprI8Const, 0x00, kExprI32LoadMem, 0x00, 0x0f,
|
| + kExprBrTable, 0x00, 0x80, 0x00); // entries=0
|
| + r.Call();
|
| +}
|
| +
|
| WASM_EXEC_TEST(BrTable0a) {
|
| WasmRunner<int32_t> r(execution_mode, MachineType::Int32());
|
| BUILD(r, B1(B1(WASM_BR_TABLE(WASM_GET_LOCAL(0), 0, BR_TARGET(0)))),
|
|
|