diff options
Diffstat (limited to 'test/Index/comment-cplus-template-decls.cpp')
-rw-r--r-- | test/Index/comment-cplus-template-decls.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/Index/comment-cplus-template-decls.cpp b/test/Index/comment-cplus-template-decls.cpp index 9510c7ce15..7ef09bd691 100644 --- a/test/Index/comment-cplus-template-decls.cpp +++ b/test/Index/comment-cplus-template-decls.cpp @@ -67,3 +67,18 @@ void func_template_1(T AAA); template<template<template<typename CCC> class DDD, class BBB> class AAA> void func_template_2(); // FIXME: There is not Declaration field in the generated output. + +namespace rdar16128173 { +// CHECK: <Declaration>template <class PtrTy> class OpaquePtr {}</Declaration> + +/// \brief Wrapper for void* pointer. +/// \tparam PtrTy Either a pointer type like 'T*' or a type that behaves like +/// a pointer. +template <class PtrTy> +class OpaquePtr {}; + +// CHECK: <Declaration>typedef OpaquePtr<int> DeclGroupPtrTy</Declaration> +typedef OpaquePtr<int> DeclGroupPtrTy; + +DeclGroupPtrTy blah; +} |