Index: tests/language/const_map_test.dart |
diff --git a/tests/language/const_map_test.dart b/tests/language/const_map_test.dart |
index 96db1d6a86477c93464f50d3c71ca44b632ccd2a..9cc0d5b40f9874d1fbd304e251edbe05456e366c 100644 |
--- a/tests/language/const_map_test.dart |
+++ b/tests/language/const_map_test.dart |
@@ -7,11 +7,8 @@ import "package:expect/expect.dart"; |
/// Returns its argument. |
/// |
/// Prevents static optimizations and inlining. |
-confuse(x) { |
- // DateTime.now() cannot be predicted statically. |
- if (new DateTime.now() == 42) return confuse(2); |
- return x; |
-} |
+@NoInline() @AssumeDynamic() |
+confuse(x) => x; |
main() { |
// Make sure that const maps use the == operator and not identical. The |