summaryrefslogtreecommitdiff
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.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/SemaTemplate/destructor-template.cpp b/test/SemaTemplate/destructor-template.cpp
index 853ba492f8e75..6570b64564065 100644
--- a/test/SemaTemplate/destructor-template.cpp
+++ b/test/SemaTemplate/destructor-template.cpp
@@ -86,3 +86,9 @@ namespace PR16852 {
template<typename T> decltype(S<T>().~S()) f(); // expected-note {{candidate template ignored: couldn't infer template argument 'T'}}
void g() { f(); } // expected-error {{no matching function for call to 'f'}}
}
+
+class PR33189
+{
+ template <class T>
+ ~PR33189() { } // expected-error{{destructor cannot be declared as a template}}
+};