Index: tests/kernel/unsorted/nullable_operator_test.dart |
diff --git a/tests/standalone/no_allow_absolute_addresses_test.dart b/tests/kernel/unsorted/nullable_operator_test.dart |
similarity index 63% |
copy from tests/standalone/no_allow_absolute_addresses_test.dart |
copy to tests/kernel/unsorted/nullable_operator_test.dart |
index e013c5e80a7b4815e364363fa524450e26f3e84e..2643a83c9b8e4c457c1f8c403f4191994818f84e 100644 |
--- a/tests/standalone/no_allow_absolute_addresses_test.dart |
+++ b/tests/kernel/unsorted/nullable_operator_test.dart |
@@ -2,8 +2,12 @@ |
// 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. |
-// VMOptions=--no_allow_absolute_addresses |
+import 'expect.dart'; |
+ |
+mkOne() => 1; |
+mkNull() => null; |
main() { |
- print("Okay"); |
+ Expect.isTrue((mkOne() ?? 2) == 1); |
+ Expect.isTrue((mkNull() ?? 2) == 2); |
} |