| 24 | {} |
| 25 | |
| 26 | void f() |
| 27 | { |
| 28 | int some_local_state=0; |
| 29 | func my_func(some_local_state); |
| 30 | std::thread t(my_func); |
| 31 | try |
| 32 | { |
| 33 | do_something_in_current_thread(); |
| 34 | } |
| 35 | catch(...) |
| 36 | { |
| 37 | t.join(); |
| 38 | throw; |
| 39 | } |
| 40 | t.join(); |
| 41 | } |
| 42 | |
| 43 | int main() |
| 44 | { |
no test coverage detected