blob: b35af71d36e750f93c7613e30e4121e5b4fafd4d [file] [log] [blame]
// Copyright (c) 2018, 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.
// @dart=2.9
main() {
int count = 0;
yield: for (int a = 0; a < 10; ++a) {
for (int b = 0; b < 10; ++b) {
++count;
if (count == 27) break yield;
}
++count;
}
if (count != 27) throw 'failed: $count';
}