aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/using10.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/g++.dg/template/using10.C')
-rw-r--r--gcc-4.9/gcc/testsuite/g++.dg/template/using10.C11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/g++.dg/template/using10.C b/gcc-4.9/gcc/testsuite/g++.dg/template/using10.C
new file mode 100644
index 000000000..902773cd5
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/g++.dg/template/using10.C
@@ -0,0 +1,11 @@
+// PR c++/22136
+
+struct B {
+ void foo();
+};
+
+template <typename T> class I : public B {};
+
+template <typename T> class D : private I<T> {
+ I<T>::B::foo; // { dg-warning "deprecated" }
+};