blob: e4e9cad8d194031d2c71480a33dc5ee526423292 [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() {
forceInlineConstructor();
}
////////////////////////////////////////////////////////////////////////////////
// Force inline a constructor call.
////////////////////////////////////////////////////////////////////////////////
class Class1 {
/*element: Class1.:[forceInlineConstructor]*/
@ForceInline()
Class1();
}
/*element: forceInlineConstructor:[]*/
@NoInline()
forceInlineConstructor() {
new Class1();
}