mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 03:47:13 +00:00
162d6c3b0c
Found two mistakes in the tests: - label2_negative_test had no labels whatsoever. - label8_negative_test called an undefined function, doAgain(). Change-Id: I4d17c969a2b1422ff96cf68996225ecaaf5fe829 Reviewed-on: https://dart-review.googlesource.com/52868 Commit-Queue: Bob Nystrom <rnystrom@google.com> Reviewed-by: Sigmund Cherem <sigmund@google.com>
18 lines
445 B
Dart
18 lines
445 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: compile-time error
|
|
{
|
|
case 111:
|
|
while (false) {
|
|
break L; //# 01: continued
|
|
}
|
|
i++;
|
|
}
|
|
}
|