| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 library unknown_command_script; | |
| 6 | |
| 7 import 'dart:io'; | |
| 8 import 'dart:typed_data'; | |
| 9 | |
| 10 class Banana { | |
| 11 final Float32List final_fixed_length_list = new Float32List(4); | |
| 12 Float32List fixed_length_list = new Float32List(4); | |
| 13 String name = ''; | |
| 14 var a = 44; | |
| 15 } | |
| 16 | |
| 17 | |
| 18 class BadBanana { | |
| 19 final Float32List final_fixed_length_list; | |
| 20 final List fixed_length_array = new List(3); | |
| 21 num v; | |
| 22 final c = 4; | |
| 23 BadBanana() : final_fixed_length_list = new Float32List(1); | |
| 24 BadBanana.variable() : final_fixed_length_list = new Float32List(2); | |
| 25 } | |
| 26 | |
| 27 main() { | |
| 28 for (int i = 0; i < 2000; i++) { | |
| 29 Banana b = new Banana(); | |
| 30 b.name = 'Banana'; | |
| 31 BadBanana bb = new BadBanana(); | |
| 32 bb.v = 1.0; | |
| 33 } | |
| 34 var bb = new BadBanana.variable(); | |
| 35 bb.v = 2.0; | |
| 36 var b = new Banana(); | |
| 37 b.a = 'foo'; | |
| 38 print(''); // Print blank line to signal that we are ready. | |
| 39 // Wait until signaled from spawning test. | |
| 40 stdin.first.then((_) => exit(0)); | |
| 41 } | |
| OLD | NEW |