| 111 | } |
| 112 | |
| 113 | int test_catch(void (*f)()) |
| 114 | { |
| 115 | try |
| 116 | { |
| 117 | f(); |
| 118 | return 1; |
| 119 | } |
| 120 | catch( leaf::error_id const & ) |
| 121 | { |
| 122 | return 0; |
| 123 | } |
| 124 | catch(...) |
| 125 | { |
| 126 | return 2; |
| 127 | } |
| 128 | } |
| 129 | #endif // #ifndef BOOST_LEAF_NO_EXCEPTIONS |
| 130 | |
| 131 | void test_single_thread() |
no test coverage detected