2019-01-29 15:10:34 +00:00
|
|
|
// Copyright (c) 2019, 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.
|
|
|
|
//
|
|
|
|
// VMOptions=--verify-entry-points=true
|
|
|
|
|
2021-04-26 17:58:57 +00:00
|
|
|
// @dart = 2.9
|
|
|
|
|
2019-01-29 15:10:34 +00:00
|
|
|
import 'dart:io';
|
|
|
|
import 'dart:convert';
|
|
|
|
import 'dart:math';
|
|
|
|
import 'package:path/path.dart';
|
|
|
|
import 'package:expect/expect.dart';
|
|
|
|
import 'dart-ext:entrypoints_verification_test_extension';
|
|
|
|
|
|
|
|
void RunTest() native "RunTest";
|
|
|
|
|
|
|
|
main() {
|
|
|
|
RunTest();
|
|
|
|
|
|
|
|
new C();
|
|
|
|
new D();
|
|
|
|
}
|
|
|
|
|
|
|
|
class C {}
|
|
|
|
|
|
|
|
@pragma("vm:entry-point")
|
|
|
|
class D {
|
|
|
|
D();
|
|
|
|
|
|
|
|
@pragma("vm:entry-point")
|
|
|
|
D.defined();
|
|
|
|
|
|
|
|
@pragma("vm:entry-point")
|
|
|
|
factory D.fact() => E.ctor();
|
|
|
|
|
|
|
|
void fn0() {}
|
|
|
|
|
|
|
|
@pragma("vm:entry-point")
|
|
|
|
void fn1() {}
|
|
|
|
|
2019-02-14 17:47:28 +00:00
|
|
|
@pragma("vm:entry-point", "get")
|
|
|
|
void fn1_get() {}
|
|
|
|
|
|
|
|
@pragma("vm:entry-point", "call")
|
|
|
|
void fn1_call() {}
|
|
|
|
|
2019-01-29 15:10:34 +00:00
|
|
|
static void fn2() {}
|
|
|
|
|
|
|
|
@pragma("vm:entry-point")
|
|
|
|
static void fn3() {}
|
|
|
|
|
2019-02-14 17:47:28 +00:00
|
|
|
@pragma("vm:entry-point", "call")
|
|
|
|
static void fn3_call() {}
|
|
|
|
|
|
|
|
@pragma("vm:entry-point", "get")
|
|
|
|
static void fn3_get() {}
|
|
|
|
|
2019-01-29 15:10:34 +00:00
|
|
|
void Function() fld0;
|
|
|
|
|
|
|
|
@pragma("vm:entry-point")
|
|
|
|
void Function() fld1;
|
|
|
|
|
|
|
|
@pragma("vm:entry-point", "get")
|
|
|
|
void Function() fld2;
|
|
|
|
|
|
|
|
@pragma("vm:entry-point", "set")
|
|
|
|
void Function() fld3;
|
|
|
|
}
|
|
|
|
|
|
|
|
void fn0() {}
|
|
|
|
|
|
|
|
@pragma("vm:entry-point")
|
|
|
|
void fn1() {}
|
|
|
|
|
2019-02-14 17:47:28 +00:00
|
|
|
@pragma("vm:entry-point", "get")
|
|
|
|
void fn1_get() {}
|
|
|
|
|
|
|
|
@pragma("vm:entry-point", "call")
|
|
|
|
void fn1_call() {}
|
|
|
|
|
2019-01-29 15:10:34 +00:00
|
|
|
class E extends D {
|
|
|
|
E.ctor();
|
|
|
|
}
|
|
|
|
|
|
|
|
@pragma("vm:entry-point")
|
|
|
|
class F {
|
|
|
|
static void Function() fld0;
|
|
|
|
|
|
|
|
@pragma("vm:entry-point")
|
|
|
|
static void Function() fld1;
|
|
|
|
|
|
|
|
@pragma("vm:entry-point", "get")
|
|
|
|
static void Function() fld2;
|
|
|
|
|
|
|
|
@pragma("vm:entry-point", "set")
|
|
|
|
static void Function() fld3;
|
|
|
|
}
|
|
|
|
|
|
|
|
void Function() fld0;
|
|
|
|
|
|
|
|
@pragma("vm:entry-point")
|
|
|
|
void Function() fld1;
|
|
|
|
|
|
|
|
@pragma("vm:entry-point", "get")
|
|
|
|
void Function() fld2;
|
|
|
|
|
|
|
|
@pragma("vm:entry-point", "set")
|
|
|
|
void Function() fld3;
|