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

Unified Diff: tests/compiler/dart2js/kernel/compile_from_dill_test.dart

Issue 2950303002: Handle for-loop with simple break in compile_from_dill_test (Closed)
Patch Set: Created 3 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/kernel/compile_from_dill_test.dart
diff --git a/tests/compiler/dart2js/kernel/compile_from_dill_test.dart b/tests/compiler/dart2js/kernel/compile_from_dill_test.dart
index 135058770e098337ca78c3746b180234e0421eb8..e2defb673c1f02eaa1eed93ddd566514ca508202 100644
--- a/tests/compiler/dart2js/kernel/compile_from_dill_test.dart
+++ b/tests/compiler/dart2js/kernel/compile_from_dill_test.dart
@@ -48,6 +48,10 @@ main() {
new Class('');
Class.staticField;
var x = null;
+ for (int i = 0; i < 10; i++) {
+ x = i;
+ if (i == 5) break;
+ }
return x;
}
'''

Powered by Google App Engine
This is Rietveld 408576698