From e057f63a54a74b9aa0bd9e548a32161e13228dcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaakko=20J=C3=A4rvi?= Date: Wed, 22 May 2002 19:47:35 +0000 Subject: [PATCH] added tests for emtpy catch blocks [SVN r14014] --- test/exception_test.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/test/exception_test.cpp b/test/exception_test.cpp index c515442..c6f364d 100644 --- a/test/exception_test.cpp +++ b/test/exception_test.cpp @@ -512,6 +512,19 @@ void test_different_number_of_catch_blocks() { BOOST_TEST(ecount == 9); } +void test_empty_catch_blocks() { + try_catch( + bind(throw_AX, _1), + catch_exception() + )(make_const(1)); + + try_catch( + bind(throw_AX, _1), + catch_all() + )(make_const(1)); + +} + void return_type_matching() { @@ -576,6 +589,7 @@ int test_main(int, char *[]) { { test_different_number_of_catch_blocks(); return_type_matching(); + test_empty_catch_blocks(); } catch (int x) {