OSDN Git Service

2011-02-20 Paolo Carlini <paolo.carlini@oracle.com>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / ptrmem16.C
1 // PR c++/25369
2 // { dg-do link }
3
4 template <typename> struct A 
5 {
6   void foo() {}
7 };
8
9 void bar(void (A<int>::*)()) {}
10
11 template <int> void baz()
12 {
13   bar(&A<int>::foo);
14 }
15
16 int main()
17 {
18   baz<0>();
19   return 0;
20 }