blob: c82c8019b82a85a90193bd8b6c176b00ac7b43ec [file] [log] [blame]
// Copyright (c) 2017, 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.
// VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation
// @dart = 2.9
@pragma('vm:never-inline')
foo(n) {
try {
return new List.filled(n, null);
} catch (e) {}
}
main() {
for (var i = 0; i < 20; i++) {
foo(5);
}
foo("");
}