Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(238)

Unified Diff: test/cctest/asmjs/test-asm-typer.cc

Issue 2172603002: [wasm] ASM-2-WASM. Enforces switch default clause appearing last. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/asmjs/asm-typer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"},
« no previous file with comments | « src/asmjs/asm-typer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698