blob: 12b4978b94afc220dfa55559f556a60ded1e94f2 [file] [log] [blame]
// { dg-do link }
template <class T>
int f(int (*fn)(T))
{
return (*fn)(3);
}
struct S {
static int g(int) { return 1; }
static void g();
int h();
};
int S::h()
{
return f(&g);
}
int main()
{
S s;
if (s.h () != 1)
return 1;
}