| Index: tests/language/null_hashcode_optimized_vm_test.dart
|
| diff --git a/tests/language/null_no_such_method_test.dart b/tests/language/null_hashcode_optimized_vm_test.dart
|
| similarity index 54%
|
| copy from tests/language/null_no_such_method_test.dart
|
| copy to tests/language/null_hashcode_optimized_vm_test.dart
|
| index adfab894f71803f7455b6211b07fa2067da4a05a..27906ca25e9cf25e41fe528059a2c83d783c6197 100644
|
| --- a/tests/language/null_no_such_method_test.dart
|
| +++ b/tests/language/null_hashcode_optimized_vm_test.dart
|
| @@ -1,11 +1,13 @@
|
| // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| // BSD-style license that can be found in the LICENSE file.
|
| -
|
| -var array = [1];
|
| +// Test that optimized Object.hashCode works for the null receiver.
|
| +// VMOptions=--optimization_counter_threshold=100
|
|
|
| main() {
|
| - Expect.throws(() => -null, (e) => e is NoSuchMethodError);
|
| - // Make sure we have an untyped call to operator-.
|
| - print(-array[0]);
|
| + for (int i = 0; i < 200; i++) {
|
| + foo(null);
|
| + }
|
| }
|
| +
|
| +foo(a) => a.hashCode;
|
|
|