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

Unified Diff: tests/language/unconditional_break.dart

Issue 13723002: dart2js: Fix SSA corner case with always breaking loop and failing assert (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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
Index: tests/language/unconditional_break.dart
diff --git a/tests/language/unconditional_break.dart b/tests/language/unconditional_break.dart
new file mode 100644
index 0000000000000000000000000000000000000000..63ec511883d398a6e0ffc0be575f14497ccb22d4
--- /dev/null
+++ b/tests/language/unconditional_break.dart
@@ -0,0 +1,16 @@
+// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+// Test to ensure that we get don't exceptions in the SSA verifier when
ngeoffray 2013/04/07 09:48:50 get don't -> don't get
+// generating phi for the return value of an inlined function that contains a
+// loop that always breaks.
+doWhileBreak() {
+ do {
+ break;
+ } while (true);
+}
+
+main() {
+ doWhileBreak();
+}
« tests/language/inlined_throw_test.dart ('K') | « tests/language/inlined_throw_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698