| 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 int a = 0; | 5 int a = 0; |
| 6 int b = 0; | 6 int b = 0; |
| 7 | 7 |
| 8 withTryFinally() { | 8 withTryFinally() { |
| 9 bool inIt = false; | 9 bool inIt = false; |
| 10 // Do a try/finally to potentially force a non-optimizing compiler. | 10 // Do a try/finally to potentially force a non-optimizing compiler. |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 if (b++ == 0) { | 22 if (b++ == 0) { |
| 23 inIt = true; | 23 inIt = true; |
| 24 } | 24 } |
| 25 Expect.isTrue(inIt); | 25 Expect.isTrue(inIt); |
| 26 } | 26 } |
| 27 | 27 |
| 28 main() { | 28 main() { |
| 29 withTryFinally(); | 29 withTryFinally(); |
| 30 withoutTryFinally(); | 30 withoutTryFinally(); |
| 31 } | 31 } |
| OLD | NEW |