blob: e17e3b15357ae6940fb4fb87173b7d1fc672c664 [file] [log] [blame]
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
main() {
int i = 0;
// Grammar doesn't allow label on block for switch statement.
switch(i)
// ^
// [analyzer] SYNTACTIC_ERROR.EXPECTED_BODY
// [cfe] A switch statement must have a body, even if it is empty.
L:
{
case 111:
// ^^^^
// [analyzer] STATIC_WARNING.UNDEFINED_IDENTIFIER
// [cfe] Expected ';' after this.
// ^^^^
// [analyzer] SYNTACTIC_ERROR.EXPECTED_TOKEN
// [cfe] Expected an identifier, but got 'case'.
// ^^^^
// [analyzer] SYNTACTIC_ERROR.MISSING_IDENTIFIER
// [cfe] Getter not found: 'case'.
// ^^^^
// [analyzer] SYNTACTIC_ERROR.MISSING_STATEMENT
// ^^^
// [analyzer] SYNTACTIC_ERROR.EXPECTED_TOKEN
// [cfe] Expected ';' after this.
// ^
// [analyzer] SYNTACTIC_ERROR.EXPECTED_TOKEN
// [cfe] Expected ';' after this.
// ^
// [analyzer] SYNTACTIC_ERROR.MISSING_IDENTIFIER
// [cfe] Expected an identifier, but got ':'.
// ^
// [analyzer] SYNTACTIC_ERROR.UNEXPECTED_TOKEN
// [cfe] Unexpected token ':'.
while (false) {
break L;
}
i++;
}
}