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 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/CXX/temp/temp.decls/temp.mem/p5.cpp b/test/CXX/temp/temp.decls/temp.mem/p5.cpp index b0078d4..a188f05 100644 --- a/test/CXX/temp/temp.decls/temp.mem/p5.cpp +++ b/test/CXX/temp/temp.decls/temp.mem/p5.cpp @@ -63,12 +63,12 @@ struct X0 { template<typename T> operator const T*() const { T x = T(); - return x; // expected-error{{cannot initialize return object of type 'char const *' with an lvalue of type 'char'}} + return x; // expected-error{{cannot initialize return object of type 'const char *' with an lvalue of type 'char'}} } }; -template X0::operator const char*() const; // expected-note{{'X0::operator char const *<char>' requested here}} -template X0::operator const int*(); // expected-note{{'X0::operator int const *<int const>' requested here}} +template X0::operator const char*() const; // expected-note{{'X0::operator const char *<char>' requested here}} +template X0::operator const int*(); // expected-note{{'X0::operator const int *<const int>' requested here}} template X0::operator float*() const; // expected-error{{explicit instantiation of undefined function template}} void test_X0(X0 x0, const X0 &x0c) { |