69790e7eb4
Change-Id: I9ba3aa4e3ebaedee3a2cd20ccdcc533af96b9bda Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98018 Reviewed-by: Lasse R.H. Nielsen <lrn@google.com> Commit-Queue: Erik Ernst <eernst@google.com>
18 lines
439 B
Dart
18 lines
439 B
Dart
// 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;
|
|
// Grammar doesn't allow label on block for switch statement.
|
|
switch(i)
|
|
L: //# 01: syntax error
|
|
{
|
|
case 111:
|
|
while (false) {
|
|
break L; //# 01: continued
|
|
}
|
|
i++;
|
|
}
|
|
}
|