summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/using-decl-templates.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaCXX/using-decl-templates.cpp')
-rw-r--r--clang/test/SemaCXX/using-decl-templates.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/using-decl-templates.cpp b/clang/test/SemaCXX/using-decl-templates.cpp
index 684009b78a4..63fa4610cbc 100644
--- a/clang/test/SemaCXX/using-decl-templates.cpp
+++ b/clang/test/SemaCXX/using-decl-templates.cpp
@@ -34,3 +34,14 @@ template<typename T> struct E : A<T> {
void g() { f(); }
};
+
+namespace test0 {
+ struct Base {
+ int foo;
+ };
+ template<typename T> struct E : Base {
+ using Base::foo;
+ };
+
+ template struct E<int>;
+}
OpenPOWER on IntegriCloud