summaryrefslogtreecommitdiff
path: root/absl/base/internal/exception_safety_testing.cc
diff options
context:
space:
mode:
Diffstat (limited to 'absl/base/internal/exception_safety_testing.cc')
-rw-r--r--absl/base/internal/exception_safety_testing.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/absl/base/internal/exception_safety_testing.cc b/absl/base/internal/exception_safety_testing.cc
index c92d07bc..d3e94074 100644
--- a/absl/base/internal/exception_safety_testing.cc
+++ b/absl/base/internal/exception_safety_testing.cc
@@ -19,7 +19,12 @@
namespace testing {
-exceptions_internal::NoThrowTag no_throw_ctor;
+exceptions_internal::NoThrowTag nothrow_ctor;
+
+bool nothrow_guarantee(const void*) {
+ return ::testing::AssertionFailure()
+ << "Exception thrown violating NoThrow Guarantee";
+}
exceptions_internal::StrongGuaranteeTagType strong_guarantee;
namespace exceptions_internal {