summaryrefslogtreecommitdiffstats
path: root/clang/test/CXX/class/class.local/p2.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2009-12-19 08:11:05 +0000
committerEli Friedman <eli.friedman@gmail.com>2009-12-19 08:11:05 +0000
commit7827520ce80aa16a2ef76abfe05f1f9c9bfefcf2 (patch)
tree0c29755e5ff79449b85a9b6ac4e03073abf02894 /clang/test/CXX/class/class.local/p2.cpp
parent5103effb1d0860c1d3132afd7d4e052967f41f48 (diff)
downloadbcm5719-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/CXX/class/class.local/p2.cpp')
-rw-r--r--clang/test/CXX/class/class.local/p2.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/test/CXX/class/class.local/p2.cpp b/clang/test/CXX/class/class.local/p2.cpp
index a1fed53b3c0..56ff1e53a49 100644
--- a/clang/test/CXX/class/class.local/p2.cpp
+++ b/clang/test/CXX/class/class.local/p2.cpp
@@ -7,6 +7,5 @@ void f() {
B b;
- A *a = &b; // expected-error{{conversion from 'struct B' to inaccessible base class 'struct A'}} \
- expected-error{{incompatible type initializing 'struct B *', expected 'struct A *'}}
+ A *a = &b; // expected-error{{conversion from 'struct B' to inaccessible base class 'struct A'}}
}
OpenPOWER on IntegriCloud