| OLD | NEW |
| 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 'compiler_helper.dart'; | 5 import 'compiler_helper.dart'; |
| 6 | 6 |
| 7 const int REMOVED = 0; | 7 const int REMOVED = 0; |
| 8 const int ABOVE_ZERO = 1; | 8 const int ABOVE_ZERO = 1; |
| 9 const int BELOW_LENGTH = 2; | 9 const int BELOW_LENGTH = 2; |
| 10 const int KEPT = 3; | 10 const int KEPT = 3; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 } | 57 } |
| 58 """, | 58 """, |
| 59 KEPT, | 59 KEPT, |
| 60 | 60 |
| 61 """ | 61 """ |
| 62 main() { | 62 main() { |
| 63 var a = new List(); | 63 var a = new List(); |
| 64 return a.removeLast(); | 64 return a.removeLast(); |
| 65 } | 65 } |
| 66 """, | 66 """, |
| 67 REMOVED, // TODO(6829): Put it back to KEPT | 67 KEPT, |
| 68 | 68 |
| 69 """ | 69 """ |
| 70 main() { | 70 main() { |
| 71 var a = new List(4); | 71 var a = new List(4); |
| 72 return a[0]; | 72 return a[0]; |
| 73 } | 73 } |
| 74 """, | 74 """, |
| 75 REMOVED, | 75 REMOVED, |
| 76 | 76 |
| 77 """ | 77 """ |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 break; | 254 break; |
| 255 } | 255 } |
| 256 } | 256 } |
| 257 | 257 |
| 258 | 258 |
| 259 main() { | 259 main() { |
| 260 for (int i = 0; i < TESTS.length; i += 2) { | 260 for (int i = 0; i < TESTS.length; i += 2) { |
| 261 expect(TESTS[i], TESTS[i + 1]); | 261 expect(TESTS[i], TESTS[i + 1]); |
| 262 } | 262 } |
| 263 } | 263 } |
| OLD | NEW |