blob: c07ccd591515476e284c92722334668c5beac32f [file] [log] [blame]
// { dg-do assemble }
// Origin: Jens Maurer <jmaurer@menuett.rhein-main.de>
template<class T, void (T::*f)(int)>
class C { };
template<class T>
C<T, &T::output> call(T& obj)
{ return C<T, &T::output>();
}
class Test {
public:
void output(int);
};
void sub()
{
Test t;
call(t);
}