blob: 6490aeb8ee0008f4acc03307c141b13ffc2a55d2 [file] [log] [blame]
// RUN: %clang_cc1 -fsyntax-only -verify %s
template<typename T>
struct X {
friend void f(int x) { T* y = x; } // expected-error{{cannot initialize a variable of type 'int *' with an lvalue of type 'int'}}
};
X<int> xi; // expected-note{{in instantiation of member function 'f' requested here}}