| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 // Dart test program for testing the instanceof operation. | 4 // Dart test program for testing the instanceof operation. |
| 5 | 5 |
| 6 num foo(int n) { | 6 num foo(int n) { |
| 7 var x; | 7 var x; |
| 8 for(var i = 0; i <= n; ++i) | 8 for(var i = 0; i <= n; ++i) |
| 9 x = Math.sqrt(i); | 9 x = Math.sqrt(i); |
| 10 return x; | 10 return x; |
| 11 } | 11 } |
| 12 | 12 |
| 13 void main() { | 13 void main() { |
| 14 var m = foo(40000); | 14 var m = foo(40000); |
| 15 print(m); | |
| 16 } | 15 } |
| OLD | NEW |