| // RUN: %clang_cc1 -fsyntax-only -verify %s |
| bar(&var); // expected-error{{invalid use of member 'var' in static member function}} |
| (void)&Enumerator; // expected-error{{cannot take the address of an rvalue of type 'E'}} |
| (void)&N; // expected-error{{cannot take the address of an rvalue of type 'int'}} |
| void (*xyz)(void) = &xpto; |
| int (PR11066::*ptr)(int) = & &PR11066::foo; // expected-error{{extra '&' taking address of overloaded function}} |
| template<typename T> struct S { |
| template<typename T> void S<T>::f() { T::error; } |
| void (S<int>::*p)() = &S<int>::f; |