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

Unified Diff: tests/compiler/dart2js/code_motion_test.dart

Issue 16944004: Change how we deal with manual inlining of argument error and NSM when propagating types. This chan… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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
Index: tests/compiler/dart2js/code_motion_test.dart
===================================================================
--- tests/compiler/dart2js/code_motion_test.dart (revision 23949)
+++ tests/compiler/dart2js/code_motion_test.dart (working copy)
@@ -7,14 +7,16 @@
const String TEST_ONE = r"""
foo(int a, int b, bool param2) {
+ // Make sure a and b become numbers.
+ var c = a - b;
for (int i = 0; i < 1; i++) {
- var x = a + 5; // '+' is now GVNed.
if (param2) {
print(a + b);
} else {
print(a + b);
}
}
+ return c;
}
""";

Powered by Google App Engine
This is Rietveld 408576698