aboutsummaryrefslogtreecommitdiff
path: root/test/SemaTemplate/destructor-template.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaTemplate/destructor-template.cpp')
-rw-r--r--test/SemaTemplate/destructor-template.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/SemaTemplate/destructor-template.cpp b/test/SemaTemplate/destructor-template.cpp
index b5ad967d69..7dd429b796 100644
--- a/test/SemaTemplate/destructor-template.cpp
+++ b/test/SemaTemplate/destructor-template.cpp
@@ -17,3 +17,16 @@ void destroy_me(T me) {
}
template void destroy_me(Incomplete*);
+
+namespace PR6152 {
+ template<typename T> struct X { void f(); };
+ template<typename T> struct Y { };
+ template<typename T>
+ void X<T>::f() {
+ Y<T> *y;
+ y->template Y<T>::~Y();
+ }
+
+ template struct X<int>;
+}
+