Files
sdk/tests/compiler/dart2js/inlining/data/switch.dart
T
Johnni Winther 59106e8f55 Fix crashes caused by inlining
Change-Id: I7fef190a4b5248f1508f0122c5dcb5ee7fdc4c40
Reviewed-on: https://dart-review.googlesource.com/27940
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2017-12-12 08:07:29 +00:00

29 lines
560 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.
/// ignore: IMPORT_INTERNAL_LIBRARY
import 'dart:_js_helper';
/*element: main:[]*/
main() {
switchThrowing();
}
/*element: switchThrowing:[]*/
@NoInline()
switchThrowing() {
switch (0) {
case 0:
_switchThrowing();
break;
default:
return;
}
}
/*element: _switchThrowing:[]*/
_switchThrowing() {
throw '';
}