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

Side by Side Diff: tests/language/issue10321_test.dart

Issue 14602011: Fix issue 10321 by invalidating previous "generate at use site" optimizations based on a pure instr… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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) 2013, 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 import "package:expect/expect.dart";
6
7 // Regression test for dart2js that used to miscompile [A.foo].
8
9 class A {
10 int a = 0;
11 int b = 42;
12 foo() {
13 int start = a - 1;
14 a = 54;
15 if (b == 42) {
16 b = 32;
17 } else {
18 b = 42;
19 }
20 Expect.equals(-1, start);
21 }
22 }
23
24 main() {
25 new A().foo();
26 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698