summaryrefslogtreecommitdiffstats
path: root/clang/test/CXX/class.access/p4.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CXX/class.access/p4.cpp')
-rw-r--r--clang/test/CXX/class.access/p4.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/clang/test/CXX/class.access/p4.cpp b/clang/test/CXX/class.access/p4.cpp
index 0ef6e3abfb2..3bbdbab8d51 100644
--- a/clang/test/CXX/class.access/p4.cpp
+++ b/clang/test/CXX/class.access/p4.cpp
@@ -309,3 +309,21 @@ namespace test12 {
}
};
}
+
+namespace test13 {
+ struct A {
+ int x;
+ unsigned foo() const;
+ };
+
+ struct B : protected A {
+ using A::foo;
+ using A::x;
+ };
+
+ void test() {
+ A *d;
+ d->foo();
+ (void) d->x;
+ }
+}
OpenPOWER on IntegriCloud