2
0
mirror of https://github.com/boostorg/lambda.git synced 2026-02-02 21:02:18 +00:00

added tests for emtpy catch blocks

[SVN r14014]
This commit is contained in:
Jaakko Järvi
2002-05-22 19:47:35 +00:00
parent 6f32c54b5d
commit e057f63a54

View File

@@ -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<A1>()
)(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)
{