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

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

Issue 2607783002: Implement do-while in Kernel SSA. (Closed)
Patch Set: . Created 4 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
« no previous file with comments | « pkg/compiler/lib/src/ssa/builder_kernel.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/loops_test.dart
diff --git a/tests/compiler/dart2js/kernel/loops_test.dart b/tests/compiler/dart2js/kernel/loops_test.dart
index a619c360bebf77e7c05da189e1bad412cf13cb46..78385c797ceb65ee4fe273dd418c2d515d41e0f6 100644
--- a/tests/compiler/dart2js/kernel/loops_test.dart
+++ b/tests/compiler/dart2js/kernel/loops_test.dart
@@ -31,6 +31,18 @@ main() {
return check(code);
});
+ test('do-while loop', () {
+ String code = '''
+main() {
+ var a = 0;
+ do {
+ a *= 2;
+ } while (a < 100);
+ return a;
+}''';
+ return check(code);
+ });
+
test('for-in loop', () {
String code = '''
main() {
« no previous file with comments | « pkg/compiler/lib/src/ssa/builder_kernel.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698