commit | eff9ab2fdc85d2039312b44b33b204f5a9b91794 | [log] [tgz] |
---|---|---|
author | William A. Kennington III <wak@google.com> | Thu Jun 10 01:48:14 2021 -0700 |
committer | William A. Kennington III <wak@google.com> | Mon Jun 14 15:57:08 2021 -0700 |
tree | e6f28750e0381e8c3924f968e5675364b92a7f52 | |
parent | c85214ed9794a0fdb6fce701d46c70b137091e70 [diff] [blame] |
exception: Add ignoreQuiet functionality Change-Id: I596c658f5e933645f7ba871cf50a69dc735365ab Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/test/exception.cpp b/test/exception.cpp index 6b4a26f..5d22071 100644 --- a/test/exception.cpp +++ b/test/exception.cpp
@@ -19,5 +19,11 @@ std::move(y))); } +TEST(Exception, IgnoreQuiet) +{ + ignoreQuiet([] {})(); + ignoreQuiet([]() mutable { throw std::runtime_error("Boom"); })(); +} + } // namespace exception } // namespace stdplus