Remove constant-update-2018 flag from tests.

Change-Id: I85d3d0180bb7f5973ad2da946a3519c553fc7f92
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/113991
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Aske Simon Christensen <askesc@google.com>
This commit is contained in:
Aske Simon Christensen 2019-08-22 11:00:54 +00:00 committed by commit-bot@chromium.org
parent e4c552fb48
commit 88c0c11612
25 changed files with 1 additions and 49 deletions

View file

@ -2,8 +2,6 @@
// 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.
// dart2jsOptions=--enable-experiment=constant-update-2018
// Regression test for CFE constant evaluation. The evaluation of [Class9.field]
// assumed that its initializer did not hold an unevaluated constant.

View file

@ -4,8 +4,6 @@
import "package:expect/expect.dart";
// SharedOptions=--enable-experiment=constant-update-2018
void main() {
const BitNot(42, 4294967253).check();
const BitNot(4294967253, 42).check();

View file

@ -2,8 +2,6 @@
// 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.
// dart2jsOptions=--enable-experiment=constant-update-2018
class A {
const A();

View file

@ -2,8 +2,6 @@
// 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.
// SharedOptions=--enable-experiment=constant-update-2018
class A {
bool operator ==(other);
const A();

View file

@ -2,7 +2,7 @@
// 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.
// SharedOptions=--enable-experiment=constant-update-2018,triple-shift
// SharedOptions=--enable-experiment=triple-shift
main() {
const dynamic i1 = 3;

View file

@ -2,8 +2,6 @@
// 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.
// SharedOptions=--enable-experiment=constant-update-2018
// Tests that types do matter when an expression is evaluated as constant.
main() {

View file

@ -2,8 +2,6 @@
// 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.
// SharedOptions=--enable-experiment=constant-update-2018
// Tests that non-deferred type literals are constant expressions.
import "dart:core";

View file

@ -2,8 +2,6 @@
// 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.
// SharedOptions=--enable-experiment=constant-update-2018
// Tests that only constant types are allowed in some positions,
// not type parameters.

View file

@ -2,8 +2,6 @@
// 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.
// SharedOptions=--enable-experiment=constant-update-2018
// Tests that equality is allowed for receivers of specific types.
import "package:expect/expect.dart";

View file

@ -2,8 +2,6 @@
// 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.
// SharedOptions=--enable-experiment=constant-update-2018
// Tests that a dynamic type does not affect whether an expression is
// potentially constant, the actual type of the value of an experssion
// only matters if the expression is evaluated as a constant.

View file

@ -2,8 +2,6 @@
// 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.
// SharedOptions=--enable-experiment=constant-update-2018
// Tests that short-circuit operators do not care about the unevaluated part.
import "package:expect/expect.dart";

View file

@ -2,8 +2,6 @@
// 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.
// SharedOptions=--enable-experiment=constant-update-2018
// Tests that types do not affect whether an expression is potentially
// constant, they only matter if the expression is evaluated as a constant.

View file

@ -2,8 +2,6 @@
// 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.
// SharedOptions=--enable-experiment=constant-update-2018
// Tests that type casts (as) are allowed.
main() {

View file

@ -2,8 +2,6 @@
// 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.
// SharedOptions=--enable-experiment=constant-update-2018
// Tests that type checks (is) are allowed.
import "package:expect/expect.dart";

View file

@ -2,8 +2,6 @@
// 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.
// SharedOptions=--enable-experiment=constant-update-2018
import 'dart:collection';
import 'package:expect/expect.dart';

View file

@ -2,8 +2,6 @@
// 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.
// SharedOptions=--enable-experiment=constant-update-2018
import 'package:expect/expect.dart';
import 'utils.dart';

View file

@ -6,8 +6,6 @@
// contain a spread.
// Regression test for https://github.com/dart-lang/sdk/issues/36812
// SharedOptions=--enable-experiment=constant-update-2018
const b = bool.fromEnvironment("foo");
main() {

View file

@ -2,8 +2,6 @@
// 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.
// SharedOptions=--enable-experiment=constant-update-2018
import 'dart:collection';
import 'helper_classes.dart';

View file

@ -2,8 +2,6 @@
// 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.
// SharedOptions=--enable-experiment=constant-update-2018
import 'package:expect/expect.dart';
// Typed as dynamic to also test spreading a value of type dynamic.

View file

@ -2,8 +2,6 @@
// 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.
// SharedOptions=--enable-experiment=constant-update-2018
// Test that environment constants in field initializers work properly.
import "package:expect/expect.dart";

View file

@ -2,8 +2,6 @@
// 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.
// SharedOptions=--enable-experiment=constant-update-2018
// Test with OSR on non-empty stack (block expression).
import 'dart:core';

View file

@ -6,5 +6,3 @@
# after serialization across modules.
dependencies:
main: [def, expect]
flags:
- constant-update-2018

View file

@ -6,5 +6,3 @@
# after serialization across modules.
dependencies:
main: def
flags:
- constant-update-2018

View file

@ -5,5 +5,3 @@
dependencies:
main: [module1, module2, expect]
module2: [module1]
flags:
- constant-update-2018

View file

@ -6,5 +6,3 @@
# module context.
dependencies:
main: [def, expect]
flags:
- constant-update-2018