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

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

Issue 2956883002: Handle continue and break in for-in and while loops (Closed)
Patch Set: Updated cf. comments 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
« no previous file with comments | « pkg/compiler/lib/src/kernel/kernel_backend_strategy.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 379a16af0cd1f1103aac50cfaaaf72cf6985706f..1526e297c9925f9580f4f05a0a4290e6f629a6b7 100644
--- a/tests/compiler/dart2js/kernel/compile_from_dill_test.dart
+++ b/tests/compiler/dart2js/kernel/compile_from_dill_test.dart
@@ -60,6 +60,17 @@ main() {
x = i;
if (i == 5) break;
}
+ int i = 0;
+ while (i < 10) {
+ if (i == 5) continue;
+ x = i;
+ if (i == 5) break;
+ }
+ for (var v in [3, 5]) {
+ if (v == 5) continue;
+ x = v;
+ if (v == 5) break;
+ }
print(x);
return x;
}
« no previous file with comments | « pkg/compiler/lib/src/kernel/kernel_backend_strategy.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698