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

Unified Diff: tests/language/range_analysis3_test.dart

Issue 1518553002: Use annotations on confuse() functions (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years 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
« tests/language/const_map2_test.dart ('K') | « tests/language/const_map_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/range_analysis3_test.dart
diff --git a/tests/language/range_analysis3_test.dart b/tests/language/range_analysis3_test.dart
index 5628e467da0b5c1cff94a5f8554b82266fa3bd25..c38e8b87365fcbf2ab319e0aa581cb286175d5f3 100644
--- a/tests/language/range_analysis3_test.dart
+++ b/tests/language/range_analysis3_test.dart
@@ -4,14 +4,8 @@
import "package:expect/expect.dart";
-confuse(x) {
- if (new DateTime.now().millisecondsSinceEpoch == 0) {
- return confuse(x + 1);
- } else if (new DateTime.now().millisecondsSinceEpoch == 0) {
- return confuse(x - 1);
- }
- return x;
-}
+@NoInline() @AssumeDynamic()
floitsch 2015/12/09 20:40:15 Actually the confuse here was still making sure th
+confuse(x) => x;
test1() {
int x = 0;
@@ -207,4 +201,4 @@ main() {
test3b();
test4a();
test4b();
-}
+}
« tests/language/const_map2_test.dart ('K') | « tests/language/const_map_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698