p4.cpp revision 8e8fb3be5bd78f0564444eca02b404566a5f3b5d
1// RUN: %clang_cc1 -fsyntax-only -verify %s 2// expected-no-diagnostics 3 4namespace PR8598 { 5 template<class T> struct identity { typedef T type; }; 6 7 template<class T, class C> 8 void f(T C::*, typename identity<T>::type*){} 9 10 struct X { void f() {}; }; 11 12 void g() { (f)(&X::f, 0); } 13} 14 15namespace PR12132 { 16 template<typename S> void fun(const int* const S::* member) {} 17 struct A { int* x; }; 18 void foo() { 19 fun(&A::x); 20 } 21} 22