1 // RUN: %clang_cc1 -fsyntax-only -verify %s
5 void foo(void (A::*)(int)); // expected-note {{passing argument to parameter here}}
6 template<typename T
> void g(T
);
9 foo(&g
<int>); // expected-error-re {{cannot form member pointer of type 'void (test0::A::*)(int){{( __attribute__\(\(thiscall\)\))?}}' without '&' and class name}}
14 // This should succeed.
17 static void f(void (A::*)());
18 static void f(void (*)(int));
30 static int foo(short);
31 static int foo(float);
39 // FIXME: The error message in this case is less than clear, we can do
41 int (A::*ptr
)(int) = &(A::foo
); // expected-error {{cannot create a non-constant pointer to member function}}