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

Unified Diff: tests/language/src/ContinueTest.dart

Issue 9347032: Fix issue 1246 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 10 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 | « runtime/vm/scopes.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/src/ContinueTest.dart
===================================================================
--- tests/language/src/ContinueTest.dart (revision 4004)
+++ tests/language/src/ContinueTest.dart (working copy)
@@ -50,6 +50,21 @@
break;
}
Expect.equals(11, i);
+
+ // continue without label inside switch continues to innermost loop.
+ do {
+ i = 20;
+ switch (0) {
+ case 0:
+ i = 22;
+ continue;
+ default:
+ i = 25;
+ break;
+ }
+ i = 30;
+ } while (false);
+ Expect.equals(22, i);
}
}
« no previous file with comments | « runtime/vm/scopes.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698