diff options
Diffstat (limited to 'test/SemaCXX/pseudo-destructors.cpp')
-rw-r--r-- | test/SemaCXX/pseudo-destructors.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/SemaCXX/pseudo-destructors.cpp b/test/SemaCXX/pseudo-destructors.cpp index a8f6683..95363e5 100644 --- a/test/SemaCXX/pseudo-destructors.cpp +++ b/test/SemaCXX/pseudo-destructors.cpp @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -fsyntax-only -verify %s +// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s struct A {}; enum Foo { F }; @@ -80,3 +80,8 @@ namespace PR11339 { template void destroy(int*); // expected-note{{in instantiation of function template specialization}} } + +template<typename T> using Id = T; +void AliasTemplate(int *p) { + p->~Id<int>(); +} |