Files
sdk/tests/language_2/vm/regression_37633_test.dart
T
Clement Skau 250f0e83ea [Cleanup] Removes deprecated --enable-inlining-annotations; updates annotation.
The --enable-inlining-annotations flag was removed a while ago and the uses
were attempted removed in https://dart-review.googlesource.com/c/sdk/+/99148
but was later reverted in https://dart-review.googlesource.com/c/sdk/+/109320.

This removes the two last cases of this flag.

Change-Id: I157dd7bce0a49ab01100fa6f48d96eeefdb06b45
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/136969
Reviewed-by: Teagan Strickland <sstrickl@google.com>
Commit-Queue: Clement Skau <cskau@google.com>
2020-02-25 12:09:10 +00:00

26 lines
592 B
Dart
Executable File

// 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=--deterministic
// Issue #37633 found with fuzzing: internal compiler crash (parallel move).
import 'dart:math';
import "package:expect/expect.dart";
double foo0() {
return acos(0.9474715118880382);
}
@pragma('vm:never-inline')
double foo() {
return atan2(foo0(), foo0());
}
main() {
double x = foo();
Expect.approxEquals(x, 0.7853981633974483);
}