blob: 9cf2ca5129e30ab2f12ac3606289ea967b3c88ff [file] [log] [blame]
// RUN: clang-cc -fsyntax-only -verify %s
template<typename T, typename U>
struct X0 {
void f(T x, U y) {
x + y; // expected-error{{invalid operands}}
}
};
struct X1 { };
template struct X0<int, float>;
template struct X0<int*, int>;
template struct X0<int X1::*, int>; // expected-note{{instantiation of}}
template<typename T>
struct X2 {
void f(T);
T g(T x, T y) {
/* NullStmt */;
}
};
template struct X2<int>;