diff options
Diffstat (limited to 'absl/types/any_test.cc')
-rw-r--r-- | absl/types/any_test.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/absl/types/any_test.cc b/absl/types/any_test.cc index 87104721..4a848ae4 100644 --- a/absl/types/any_test.cc +++ b/absl/types/any_test.cc @@ -14,6 +14,9 @@ #include "absl/types/any.h" +// This test is a no-op when absl::any is an alias for std::any. +#if !defined(ABSL_HAVE_STD_ANY) + #include <initializer_list> #include <type_traits> #include <utility> @@ -774,3 +777,5 @@ TEST(AnyTest, FailedEmplace) { } } // namespace + +#endif // #if !defined(ABSL_HAVE_STD_ANY) |