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() { |