aboutsummaryrefslogtreecommitdiffhomepage
path: root/absl/types/any_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'absl/types/any_test.cc')
-rw-r--r--absl/types/any_test.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/absl/types/any_test.cc b/absl/types/any_test.cc
index 8710472..4a848ae 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)