aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/warn-documentation.cpp
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2012-07-30 18:05:28 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2012-07-30 18:05:28 +0000
commite5deb79d0e7f1c81fdc9ae89ed5a4edc9a589581 (patch)
tree1b153d0932e71fe0c8c5108435d956ba4c8e9c08 /test/Sema/warn-documentation.cpp
parent74edbd4edf9d25ea5ae0413cc16c5c4e16ad5262 (diff)
Comment parser: don't crash on a completely empty \param followed by a block
command git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160975 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/warn-documentation.cpp')
-rw-r--r--test/Sema/warn-documentation.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Sema/warn-documentation.cpp b/test/Sema/warn-documentation.cpp
index 5ec3ffcf68..87d8840c7a 100644
--- a/test/Sema/warn-documentation.cpp
+++ b/test/Sema/warn-documentation.cpp
@@ -298,3 +298,9 @@ namespace test_attach24 {
*/
void test_nocrash1(int);
+// We used to crash on this.
+// expected-warning@+2 {{empty paragraph passed to '\param' command}}
+// expected-warning@+1 {{empty paragraph passed to '\brief' command}}
+/// \param\brief
+void test_nocrash2(int);
+