| // RUN: %clang_cc1 -fsyntax-only -verify %s |
| // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s |
| static void member() { T* x = 1; } // expected-error{{cannot initialize a variable of type 'int *' with an rvalue of type 'int'}} |
| template<void(*)()> struct instantiate { }; |
| typedef instantiate<&X1<int>::member> i; // expected-note{{in instantiation of}} |
| template <class T, class A> class C { |
| // expected-error@+2 {{'int' is not a class, namespace, or enumeration}} |
| // expected-error@+1 {{no member named '~Colors' in 'Colors'}} |
| // expected-error@+2 {{no member named '~int' in 'Q'}} |
| // expected-error@+1 {{no member named '~Colors' in 'Q'}} |
| enum Colors {red, green, blue}; |
| C<Q, Colors> dummyColors; |
| // expected-note@+1 {{in instantiation of member function 'C<Q, int>::f' requested here}} |
| // expected-note@+1 {{in instantiation of member function 'C<Q, Colors>::f' requested here}} |