Files
sdk/tests/compiler/dart2js/inlining/data/external.dart
T
Johnni Winther 05f3b12960 Add test for native declarations
Change-Id: Iea9d8d27e6fdefa6f47471a459cdb4363aab65e1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98011
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2019-03-28 10:29:11 +00:00

24 lines
518 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.
@JS()
library lib;
import 'package:js/js.dart';
/*element: main:[]*/
main() {
externalFunction();
}
/*element: externalFunction:[]*/
@pragma('dart2js:noInline')
externalFunction() {
_externalFunction();
}
/*element: _externalFunction:[]*/
@JS('externalFunction')
external _externalFunction();