| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 // VMOptions=--optimization-counter-threshold=5 --enable-debug-break --no-backgr
ound-compilation | 4 // VMOptions=--optimization-counter-threshold=5 --enable-debug-break --no-backgr
ound-compilation |
| 5 | 5 |
| 6 // Verify that the optimizer does not trip over the debug break (StopInstr). | 6 // Verify that the optimizer does not trip over the debug break (StopInstr). |
| 7 | 7 |
| 8 test(i) { | 8 test(i) { |
| 9 if (i.isOdd) { | 9 if (i.isOdd) { |
| 10 break "never_hit"; | 10 break "never_hit"; |
| 11 } | 11 } |
| 12 // "crash" is not an allowed outcome specifier. | 12 // "crash" is not an allowed outcome specifier. |
| 13 // Use "ok" instead and mark the status file with "Crash, OK". | 13 // Use "ok" instead and mark the status file with "Crash, OK". |
| 14 if (i == 18) { | 14 if (i == 18) { |
| 15 break "hit"; /// 01: ok | 15 break "hit"; //# 01: ok |
| 16 } | 16 } |
| 17 } | 17 } |
| 18 | 18 |
| 19 void main() { | 19 void main() { |
| 20 for (var i = 0; i < 20; i += 2) { | 20 for (var i = 0; i < 20; i += 2) { |
| 21 test(i); | 21 test(i); |
| 22 } | 22 } |
| 23 } | 23 } |
| OLD | NEW |