aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/warn-documentation.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2012-08-13 16:37:30 +0000
committerDouglas Gregor <dgregor@apple.com>2012-08-13 16:37:30 +0000
commitcd81df2dcff4e13eea6edfbfd52a4458d978d174 (patch)
tree4ec3e36586f18b562c1293d5c54142d11c4b3e82 /test/Sema/warn-documentation.cpp
parent21efbb606fe905b0f5a479b7b3e6d79023cb82ee (diff)
When looking for the comment associated with a declaration, adjust the
'templated' declaration for a function or class template to refer to the function or class template itself, to which the documentation will be attached. Fixes PR13593. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161762 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/warn-documentation.cpp')
-rw-r--r--test/Sema/warn-documentation.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/Sema/warn-documentation.cpp b/test/Sema/warn-documentation.cpp
index d116c3f8ca..16ba4297cd 100644
--- a/test/Sema/warn-documentation.cpp
+++ b/test/Sema/warn-documentation.cpp
@@ -652,3 +652,19 @@ void test_nocrash1(int);
/// \param\brief
void test_nocrash2(int);
+// PR13593
+
+/**
+* Bla.
+*/
+template <typename>
+void test_nocrash3();
+
+/// Foo
+template <typename, typename>
+void test_nocrash4() { }
+
+template <typename>
+void test_nocrash3()
+{
+}