Lines Matching defs:const
62 template<typename T> operator T*() const; // expected-note{{explicit instantiation refers here}}
64 template<typename T> operator const T*() const {
66 return x; // expected-error{{cannot initialize return object of type 'const char *' with an lvalue of type 'char'}} \
67 // expected-error{{cannot initialize return object of type 'const int *' with an lvalue of type 'int'}}
71 template X0::operator const char*() const; // expected-note{{'X0::operator const char *<char>' requested here}}
72 template X0::operator const int*(); // expected-note{{'X0::operator const int *<const int>' requested here}}
73 template X0::operator float*() const; // expected-error{{explicit instantiation of undefined function template}}
75 void test_X0(X0 x0, const X0 &x0c) {
76 x0.operator const int*(); // expected-note{{in instantiation of function template specialization}}
78 x0c.operator const char*();