| Index: compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java
|
| diff --git a/compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java b/compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java
|
| index 8ee0b348a3df36b45e9f04e77acb43cee0d5803d..b3920c4d3fb2945a75061b07a11dfbd9ba5ff371 100644
|
| --- a/compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java
|
| +++ b/compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java
|
| @@ -633,4 +633,16 @@ public class SyntaxTest extends AbstractParserTest {
|
| ParserErrorCode.UNEXPECTED_TOKEN, 2, 13,
|
| ParserErrorCode.EXPECTED_TOKEN, 4, 1);
|
| }
|
| +
|
| + public void testLabelledCaseStatements() throws Exception {
|
| + parseUnit("phony_labelled_case_statements.dart",
|
| + Joiner.on("\n").join(
|
| + "method() {",
|
| + " switch(1) {",
|
| + " A: case 0:",
|
| + " B: case 1:",
|
| + " break;",
|
| + " }",
|
| + "}"));
|
| + }
|
| }
|
|
|