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

Unified Diff: dart/tests/language/for_test.dart

Issue 17494002: Version 0.5.20.3 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 7 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 | « dart/runtime/vm/flow_graph_builder.cc ('k') | dart/tools/VERSION » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tests/language/for_test.dart
===================================================================
--- dart/tests/language/for_test.dart (revision 24215)
+++ dart/tests/language/for_test.dart (working copy)
@@ -31,6 +31,20 @@
}
return i;
}
+
+ static var status;
+ static void f5() {
+ status = 0;
+ for (var stop = false;;) {
+ if (stop) {
+ break;
+ } else {
+ stop = true;
+ continue;
+ }
+ }
+ status = 1;
+ }
}
class ForTest {
@@ -50,6 +64,9 @@
Expect.equals(1, Helper.f4(1));
Expect.equals(6, Helper.f4(6));
Expect.equals(6, Helper.f4(10));
+
+ Helper.f5();
+ Expect.equals(1, Helper.status);
}
}
« no previous file with comments | « dart/runtime/vm/flow_graph_builder.cc ('k') | dart/tools/VERSION » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698