aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/lookup/using52.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/g++.dg/lookup/using52.C')
-rw-r--r--gcc-4.9/gcc/testsuite/g++.dg/lookup/using52.C16
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/g++.dg/lookup/using52.C b/gcc-4.9/gcc/testsuite/g++.dg/lookup/using52.C
new file mode 100644
index 000000000..bf2620714
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/g++.dg/lookup/using52.C
@@ -0,0 +1,16 @@
+// { dg-do compile }
+// PR c++/52645
+
+class A
+{
+protected:
+ struct B {};
+};
+
+class C : A
+{
+protected:
+ using A::B;
+
+ struct D : public B {};
+};