diff options
| author | Anders Carlsson <andersca@mac.com> | 2010-04-21 19:52:01 +0000 |
|---|---|---|
| committer | Anders Carlsson <andersca@mac.com> | 2010-04-21 19:52:01 +0000 |
| commit | 43c64af5f0fba76d5117668183c7b19ece140fdc (patch) | |
| tree | cb3ea5fd978e337ef26f95f4f3aec710bb9d4604 /clang/test/CXX/class.access/p4.cpp | |
| parent | 53fac692fa06c812490bbbc25cb14dae67c95685 (diff) | |
| download | bcm5719-llvm-43c64af5f0fba76d5117668183c7b19ece140fdc.tar.gz bcm5719-llvm-43c64af5f0fba76d5117668183c7b19ece140fdc.zip | |
Keep tack of whether a base in an InitializedEntity is an inherited virtual base or not. Use this in CheckConstructorAccess.
llvm-svn: 102020
Diffstat (limited to 'clang/test/CXX/class.access/p4.cpp')
| -rw-r--r-- | clang/test/CXX/class.access/p4.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/test/CXX/class.access/p4.cpp b/clang/test/CXX/class.access/p4.cpp index 3d1578a4fc8..fdde7350622 100644 --- a/clang/test/CXX/class.access/p4.cpp +++ b/clang/test/CXX/class.access/p4.cpp @@ -103,9 +103,8 @@ namespace test2 { public: C(); }; - - // FIXME: It would be better if this said something about A being an inherited virtual base. - class D : C { }; // expected-error {{base class 'test2::A' has private constructor}} + + class D : C { }; // expected-error {{inherited virtual base class 'test2::A' has private constructor}} D d; } |

