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

Side by Side Diff: frog/tests/leg_only/regression_2913_test.dart

Issue 10375048: Don't allow phi equivalences along back-edges. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added test. Updated other tests. Simplified isPhiBefore. Created 8 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 main() {
6 var a = 10;
7 var b = 11;
8
9 for (var i = 0; i < 1; i++) {
10 print('--------');
11 print('a $a');
12 print('b $b');
13 var t = 1;
14 if (i < 20) {
15 t = 2;
16 }
17
18 b = a;
19 a = t;
20 }
21 Expect.equals(2, a);
22 Expect.equals(10, b);
23 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698