diff options
Diffstat (limited to 'test/CXX/temp/temp.decls/temp.mem/p5.cpp')
-rw-r--r-- | test/CXX/temp/temp.decls/temp.mem/p5.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/CXX/temp/temp.decls/temp.mem/p5.cpp b/test/CXX/temp/temp.decls/temp.mem/p5.cpp index a188f05d535e3..8bcd773ee98b5 100644 --- a/test/CXX/temp/temp.decls/temp.mem/p5.cpp +++ b/test/CXX/temp/temp.decls/temp.mem/p5.cpp @@ -63,7 +63,8 @@ struct X0 { template<typename T> operator const T*() const { T x = T(); - return x; // expected-error{{cannot initialize return object of type 'const char *' with an lvalue of type 'char'}} + return x; // expected-error{{cannot initialize return object of type 'const char *' with an lvalue of type 'char'}} \ + // expected-error{{cannot initialize return object of type 'const int *' with an lvalue of type 'int'}} } }; @@ -72,7 +73,7 @@ template X0::operator const int*(); // expected-note{{'X0::operator const int *< template X0::operator float*() const; // expected-error{{explicit instantiation of undefined function template}} void test_X0(X0 x0, const X0 &x0c) { - x0.operator const int*(); + x0.operator const int*(); // expected-note{{in instantiation of function template specialization}} x0.operator float *(); x0c.operator const char*(); } |