Index: tests/language/loop_exchange4_test.dart |
diff --git a/tests/language/loop_exchange4_test.dart b/tests/language/loop_exchange4_test.dart |
new file mode 100644 |
index 0000000000000000000000000000000000000000..58e0365c48d3e3e7315302b1177eecf8b3d4a02d |
--- /dev/null |
+++ b/tests/language/loop_exchange4_test.dart |
@@ -0,0 +1,16 @@ |
+// Copyright (c) 2012, 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. |
+ |
+// This program tripped dart2js. |
ngeoffray
2012/05/03 07:29:14
It works for me?
floitsch
2012/05/03 09:11:29
As before: a bad version of this CL triggered this
|
+main() { |
+ var count = 0; |
+ for (var i = 0; i < 1; i++, count += i) {} |
+ |
+ int foo; |
+ for (var i = 0; i < 10; foo = i, i++) { |
+ if(i > 0) { // e is not evaluated before the first iteration |
+ Expect.equals(i - 1, foo); |
+ } |
+ } |
+} |