Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1490)

Unified Diff: tests/language/allocation_sinking_inlining_test.dart

Issue 2984443003: Migrate the language tests up to arithmetic_test. (Closed)
Patch Set: generic_methods_generic_function_result_test isn't working on DDC yet. Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/language/allocate_test.dart ('k') | tests/language/application_negative_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/allocation_sinking_inlining_test.dart
diff --git a/tests/language/allocation_sinking_inlining_test.dart b/tests/language/allocation_sinking_inlining_test.dart
deleted file mode 100644
index 6ed55015a9026f6e2348018e4177cc498c060a55..0000000000000000000000000000000000000000
--- a/tests/language/allocation_sinking_inlining_test.dart
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright (c) 2013, 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=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation
-
-// Test allocation sinking with polymorphic inlining.
-
-import "package:expect/expect.dart";
-
-class A {
- foo(x) => ++x.f;
-}
-
-class B {
- foo(x) => --x.f;
-}
-
-class C {
- int f = 0;
-}
-
-test(obj) {
- var c = new C();
- return obj.foo(c);
-}
-
-main() {
- var a = new A();
- var b = new B();
- Expect.equals(1, test(a));
- Expect.equals(-1, test(b));
- for (var i = 0; i < 20; i++) test(a);
- Expect.equals(1, test(a));
- Expect.equals(-1, test(b));
-}
« no previous file with comments | « tests/language/allocate_test.dart ('k') | tests/language/application_negative_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698