summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/ptrmem16.C
blob: 770581db828873c5952098f24527207768221bac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// PR c++/25369
// { dg-do link }

template <typename> struct A 
{
  void foo() {}
};

void bar(void (A<int>::*)()) {}

template <int> void baz()
{
  bar(&A<int>::foo);
}

int main()
{
  baz<0>();
  return 0;
}