OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 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 | 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 // Test correct handling reusable boxes. | 4 // Test correct handling reusable boxes. |
5 // VMOptions=--optimization_counter_threshold=100 | 5 // VMOptions=--optimization_counter_threshold=100 --no-background_compilation |
6 | 6 |
7 library reusable_boxes_test; | 7 library reusable_boxes_test; |
8 | 8 |
9 import 'dart:typed_data'; | 9 import 'dart:typed_data'; |
10 import 'package:expect/expect.dart'; | 10 import 'package:expect/expect.dart'; |
11 | 11 |
12 class D { | 12 class D { |
13 var a = 0.0; | 13 var a = 0.0; |
14 var b = 1.0; | 14 var b = 1.0; |
15 var c = 2.0; | 15 var c = 2.0; |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 Expect.equals(40.0, r.y); | 83 Expect.equals(40.0, r.y); |
84 Expect.equals(60.0, r.z); | 84 Expect.equals(60.0, r.z); |
85 Expect.equals(80.0, r.w); | 85 Expect.equals(80.0, r.w); |
86 } | 86 } |
87 | 87 |
88 | 88 |
89 main() { | 89 main() { |
90 testD(); | 90 testD(); |
91 testF(); | 91 testF(); |
92 } | 92 } |
OLD | NEW |