summaryrefslogtreecommitdiff
path: root/src/third_party/abseil-cpp-master/abseil-cpp/absl/memory/memory_exception_safety_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/abseil-cpp-master/abseil-cpp/absl/memory/memory_exception_safety_test.cc')
-rw-r--r--src/third_party/abseil-cpp-master/abseil-cpp/absl/memory/memory_exception_safety_test.cc13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/third_party/abseil-cpp-master/abseil-cpp/absl/memory/memory_exception_safety_test.cc b/src/third_party/abseil-cpp-master/abseil-cpp/absl/memory/memory_exception_safety_test.cc
index 00d2b192cfc..1df72614c00 100644
--- a/src/third_party/abseil-cpp-master/abseil-cpp/absl/memory/memory_exception_safety_test.cc
+++ b/src/third_party/abseil-cpp-master/abseil-cpp/absl/memory/memory_exception_safety_test.cc
@@ -4,7 +4,7 @@
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
-// http://www.apache.org/licenses/LICENSE-2.0
+// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
@@ -14,17 +14,19 @@
#include "absl/memory/memory.h"
+#include "absl/base/config.h"
+
+#ifdef ABSL_HAVE_EXCEPTIONS
+
#include "gtest/gtest.h"
#include "absl/base/internal/exception_safety_testing.h"
namespace absl {
+ABSL_NAMESPACE_BEGIN
namespace {
constexpr int kLength = 50;
using Thrower = testing::ThrowingValue<testing::TypeSpec::kEverythingThrows>;
-using ThrowerStorage =
- absl::aligned_storage_t<sizeof(Thrower), alignof(Thrower)>;
-using ThrowerList = std::array<ThrowerStorage, kLength>;
TEST(MakeUnique, CheckForLeaks) {
constexpr int kValue = 321;
@@ -49,4 +51,7 @@ TEST(MakeUnique, CheckForLeaks) {
}
} // namespace
+ABSL_NAMESPACE_END
} // namespace absl
+
+#endif // ABSL_HAVE_EXCEPTIONS