diff options
Diffstat (limited to 'libcxx/test/language.support/support.exception/exception.unexpected')
-rw-r--r-- | libcxx/test/language.support/support.exception/exception.unexpected/set.unexpected/set_unexpected.pass.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libcxx/test/language.support/support.exception/exception.unexpected/set.unexpected/set_unexpected.pass.cpp b/libcxx/test/language.support/support.exception/exception.unexpected/set.unexpected/set_unexpected.pass.cpp index c113f6f2dfc..3225a8691dc 100644 --- a/libcxx/test/language.support/support.exception/exception.unexpected/set.unexpected/set_unexpected.pass.cpp +++ b/libcxx/test/language.support/support.exception/exception.unexpected/set.unexpected/set_unexpected.pass.cpp @@ -23,13 +23,13 @@ void f3() int main() { - std::unexpected_handler old = std::set_unexpected(f1); + std::unexpected_handler old = std::set_unexpected(f1); // verify there is a previous unexpected handler - assert(old); - // verify f1 was replace with f2 + assert(old); + // verify f1 was replace with f2 assert(std::set_unexpected(f2) == f1); - // verify calling original unexpected handler calls terminate - std::set_terminate(f3); - (*old)(); - assert(0); + // verify calling original unexpected handler calls terminate + std::set_terminate(f3); + (*old)(); + assert(0); } |