Files
sdk/pkg/compiler/test/inlining/data/switch.dart
T
Stephen Adams 66e4f27384 [dart2js] Temporarily disable inlining of methods with labeled statements
Bug: 51646
Bug: 51652
Change-Id: I3d7a722420a6ead288e19ed7a5fc017b32d6a545
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/287300
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
2023-03-08 04:13:38 +00:00

28 lines
533 B
Dart

// 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.
// @dart = 2.7
/*member: main:[]*/
main() {
switchThrowing();
}
/*member: switchThrowing:has label*/
@pragma('dart2js:noInline')
switchThrowing() {
switch (0) {
case 0:
_switchThrowing();
break;
default:
return;
}
}
/*member: _switchThrowing:[]*/
_switchThrowing() {
throw '';
}