aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/using-decl-templates.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/using-decl-templates.cpp')
-rw-r--r--test/SemaCXX/using-decl-templates.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/SemaCXX/using-decl-templates.cpp b/test/SemaCXX/using-decl-templates.cpp
index 13ee1b2dd3..b7cc69ae52 100644
--- a/test/SemaCXX/using-decl-templates.cpp
+++ b/test/SemaCXX/using-decl-templates.cpp
@@ -14,3 +14,9 @@ template<typename T> struct B : A<T> {
};
B<int> a; // expected-note{{in instantiation of template class 'struct B<int>' requested here}}
+
+template<typename T> struct C : A<T> {
+ using A<T>::f;
+
+ void f() { };
+};