93313bf12d
The back-edge test failed to take into account that a block can have a back-edge to itself. Fixed: 45413 Change-Id: Ib623e6baa2c1de6df131fc67462978a042df5a4e Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/192606 Reviewed-by: Mayank Patke <fishythefish@google.com> Commit-Queue: Stephen Adams <sra@google.com>
16 lines
411 B
Dart
16 lines
411 B
Dart
// Copyright (c) 2021, 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.
|
|
|
|
// Regression test for dart2js stack overflow.
|
|
|
|
import 'package:expect/expect.dart';
|
|
|
|
void main() {
|
|
int x = 0;
|
|
do {
|
|
x++;
|
|
} while (x % 10 == 7 ? false : true);
|
|
Expect.equals(7, x);
|
|
}
|