blob: 58b5800a6fe380369d81dad33ddf45f7508d2ea2 [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.
/// ignore: IMPORT_INTERNAL_LIBRARY
import 'dart:_js_helper';
/*element: main:[]*/
main() {
forceInlineDynamic();
}
////////////////////////////////////////////////////////////////////////////////
// Force inline a dynamic call.
////////////////////////////////////////////////////////////////////////////////
class Class1 {
/*element: Class1.:[]*/
@NoInline()
Class1();
/*element: Class1.method:[forceInlineDynamic]*/
@ForceInline()
method() {}
}
/*element: forceInlineDynamic:[]*/
@NoInline()
forceInlineDynamic() {
new Class1().method();
}