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

Side by Side Diff: tests/language_2/if_and_test.dart

Issue 3003933002: Migrate block 116. (Closed)
Patch Set: Created 3 years, 3 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
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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 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. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import "package:expect/expect.dart"; 5 import "package:expect/expect.dart";
6 6
7 // The "if (negative) res2 |= 3" below can be emitted as negative && (res2 |= 3) 7 // The "if (negative) res2 |= 3" below can be emitted as negative && (res2 |= 3)
8 // in JavaScript. Dart2js produced the wrong output. 8 // in JavaScript. Dart2js produced the wrong output.
9 9
10 _shiftRight(x, y) => x; 10 _shiftRight(x, y) => x;
(...skipping 13 matching lines...) Expand all
24 } 24 }
25 25
26 main() { 26 main() {
27 var a = new A(); 27 var a = new A();
28 var t; 28 var t;
29 for (int i = 0; i < 3; i++) { 29 for (int i = 0; i < 3; i++) {
30 t = a.opshr(99, 496); 30 t = a.opshr(99, 496);
31 } 31 }
32 Expect.equals(499, t); 32 Expect.equals(499, t);
33 } 33 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698