summaryrefslogtreecommitdiffstats
path: root/test/CXX/class/class.local/p2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/CXX/class/class.local/p2.cpp')
-rw-r--r--test/CXX/class/class.local/p2.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CXX/class/class.local/p2.cpp b/test/CXX/class/class.local/p2.cpp
index 56ff1e5..8d281a5 100644
--- a/test/CXX/class/class.local/p2.cpp
+++ b/test/CXX/class/class.local/p2.cpp
@@ -3,9 +3,9 @@
struct A { };
void f() {
- struct B : private A {}; // expected-note{{'private' inheritance specifier here}}
+ struct B : private A {}; // expected-note{{declared private here}}
B b;
- A *a = &b; // expected-error{{conversion from 'struct B' to inaccessible base class 'struct A'}}
+ A *a = &b; // expected-error{{cannot cast 'struct B' to its private base class 'struct A'}}
}
OpenPOWER on IntegriCloud