Index: test/cctest/asmjs/test-asm-typer.cc |
diff --git a/test/cctest/asmjs/test-asm-typer.cc b/test/cctest/asmjs/test-asm-typer.cc |
index b9b3c58739267f94a8dc55e5df66e5fc464b5e5e..0553fab5c64d6d9cd8804579e0b777069737d5e2 100644 |
--- a/test/cctest/asmjs/test-asm-typer.cc |
+++ b/test/cctest/asmjs/test-asm-typer.cc |
@@ -859,6 +859,8 @@ TEST(ErrorsInStatement) { |
{"do {} while (fround(1));", "Do {} While condition must be type int"}, |
{"for (;fround(1););", "For condition must be type int"}, |
{"switch(flocal){ case 0: return 0; }", "Switch tag must be signed"}, |
+ {"switch(slocal){ default: case 0: return 0; }", |
+ "Switch default must appear last"}, |
{"switch(slocal){ case 1: case 1: return 0; }", "Duplicated case label"}, |
{"switch(slocal){ case 1: case 0: break; case 1: return 0; }", |
"Duplicated case label"}, |