diff options
Diffstat (limited to 'clang/test/SemaTemplate/instantiate-expr-2.cpp')
| -rw-r--r-- | clang/test/SemaTemplate/instantiate-expr-2.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/clang/test/SemaTemplate/instantiate-expr-2.cpp b/clang/test/SemaTemplate/instantiate-expr-2.cpp index 5351701cdcd..146e63c5bb0 100644 --- a/clang/test/SemaTemplate/instantiate-expr-2.cpp +++ b/clang/test/SemaTemplate/instantiate-expr-2.cpp @@ -160,3 +160,21 @@ namespace N9 { template struct B<int>; } + +namespace N10 { + template <typename T> + class A { + struct X { }; + + public: + ~A() { + f(reinterpret_cast<X *>(0), reinterpret_cast<X *>(0)); + } + + private: + void f(X *); + void f(X *, X *); + }; + + template class A<int>; +} |

