| 209 | } |
| 210 | |
| 211 | struct custom_falsy_invocable { |
| 212 | operator bool() const { |
| 213 | return false; |
| 214 | } |
| 215 | int operator()() const { |
| 216 | return 0; |
| 217 | } |
| 218 | }; |
| 219 | |
| 220 | TEST(regression_tests, custom_falsy_invocable) { |
| 221 | fu2::function<int()> f(custom_falsy_invocable{}); |
nothing calls this directly
no outgoing calls
no test coverage detected