| 153 | // while second overload is selected for everything else. |
| 154 | template <typename F, typename ...Args> |
| 155 | void EXPECT_CALL_INVALID(F&& f, Args&&... args) |
| 156 | { |
| 157 | static_assert( |
| 158 | !decltype( |
| 159 | callable(std::forward<F>(f), std::forward<Args>(args)...))::value, |
| 160 | "call expression is expected to be invalid"); |
| 161 | } |
| 162 | |
| 163 | } // namespace { |
| 164 |