diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2009-12-19 08:11:05 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2009-12-19 08:11:05 +0000 |
commit | 7827520ce80aa16a2ef76abfe05f1f9c9bfefcf2 (patch) | |
tree | 0c29755e5ff79449b85a9b6ac4e03073abf02894 /clang/test/SemaCXX/direct-initializer.cpp | |
parent | 5103effb1d0860c1d3132afd7d4e052967f41f48 (diff) | |
download | bcm5719-llvm-7827520ce80aa16a2ef76abfe05f1f9c9bfefcf2.tar.gz bcm5719-llvm-7827520ce80aa16a2ef76abfe05f1f9c9bfefcf2.zip |
Initialization improvements: addition of string initialization and a few
small bug fixes in SemaInit, switch over SemaDecl to use it more often, and
change a bunch of diagnostics which are different with the new initialization
code.
llvm-svn: 91767
Diffstat (limited to 'clang/test/SemaCXX/direct-initializer.cpp')
-rw-r--r-- | clang/test/SemaCXX/direct-initializer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/SemaCXX/direct-initializer.cpp b/clang/test/SemaCXX/direct-initializer.cpp index 4809daba958..0930ff798fb 100644 --- a/clang/test/SemaCXX/direct-initializer.cpp +++ b/clang/test/SemaCXX/direct-initializer.cpp @@ -40,11 +40,11 @@ struct Base { }; struct Derived : Base { - operator int*(); + operator int*(); // expected-note {{candidate function}} }; void foo(const Derived cd, Derived d) { - int *pi = cd; // expected-error {{incompatible type initializing 'struct Derived const', expected 'int *'}} + int *pi = cd; // expected-error {{no viable conversion from 'struct Derived const' to 'int *'}} int *ppi = d; } |