1 // RUN: %clang_cc1 -fsyntax-only %s -verify
2 // expected-no-diagnostics
4 namespace rdar10544564
{
5 // Check that we don't attempt to use an overloaded operator& when
6 // naming a pointer-to-member.
20 X
Y::*data_mem_ptr
= &Y::member
;
21 X (Y::*func_mem_ptr1
)() = &Y::memfunc1
;
22 X (Y::*func_mem_ptr2
)() = &Y::memfunc2
;
26 X
Y::*data_mem_ptr
= &Y::member
;
27 X (Y::*func_mem_ptr1
)() = &Y::memfunc1
;
28 X (Y::*func_mem_ptr2
)() = &Y::memfunc2
;