blob: 109d0384c4bb6d1530e212199999a1b26d86406d [file] [log] [blame]
template<class T>
struct A
{
~A() = delete;
};
template<class T> auto h() -> A<T>;
template<class T> auto i(T) -> T;
template<class T> auto f(T) -> decltype(i(h<T>()));
template<class T> auto f(T) -> void;
auto g() -> void {
f(42);
}