From 9f4dbff6669c8037f3b036bcf580d14f1a4f12a5 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Mon, 24 Nov 2014 09:15:30 +0000 Subject: Vendor import of clang RELEASE_350/final tag r216957 (effectively, 3.5.0 release): https://llvm.org/svn/llvm-project/cfe/tags/RELEASE_350/final@216957 --- test/Index/comment-cplus-template-decls.cpp | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'test/Index/comment-cplus-template-decls.cpp') diff --git a/test/Index/comment-cplus-template-decls.cpp b/test/Index/comment-cplus-template-decls.cpp index 039f092a6280..7ef09bd691b1 100644 --- a/test/Index/comment-cplus-template-decls.cpp +++ b/test/Index/comment-cplus-template-decls.cpp @@ -27,7 +27,7 @@ template struct A { }; // CHECK: template <typename T> struct A {} // CHECK: A<T>() -// CHECK: void ~A<T>() +// CHECK: ~A<T>() /** * \Brief Eee @@ -67,3 +67,18 @@ void func_template_1(T AAA); template class DDD, class BBB> class AAA> void func_template_2(); // FIXME: There is not Declaration field in the generated output. + +namespace rdar16128173 { +// CHECK: template <class PtrTy> class OpaquePtr {} + +/// \brief Wrapper for void* pointer. +/// \tparam PtrTy Either a pointer type like 'T*' or a type that behaves like +/// a pointer. +template +class OpaquePtr {}; + +// CHECK: typedef OpaquePtr<int> DeclGroupPtrTy +typedef OpaquePtr DeclGroupPtrTy; + +DeclGroupPtrTy blah; +} -- cgit v1.2.3