diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2012-07-20 20:18:53 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2012-07-20 20:18:53 +0000 |
commit | 9f08f49929324ec6863e81b22a43fb2e8575b433 (patch) | |
tree | 6a28cd180db00d848df4346f3e05184ed16f1cca /test/Sema/warn-documentation.cpp | |
parent | bbe0175255d4da42cd99d93ca1e60c8eabcb4b9a (diff) |
Fix PR13411: Comment parsing: failed assertion on unterminated verbatim block.
The assertion was wrong in case we have a verbatim block without a closing
command.
Also add tests for closing command name in a verbatim block, since now it can
be empty in such cases.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160568 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/warn-documentation.cpp')
-rw-r--r-- | test/Sema/warn-documentation.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Sema/warn-documentation.cpp b/test/Sema/warn-documentation.cpp index aec914a7cd..69e12b5097 100644 --- a/test/Sema/warn-documentation.cpp +++ b/test/Sema/warn-documentation.cpp @@ -276,3 +276,9 @@ namespace test_attach24 { } } +// PR13411, reduced. We used to crash on this. +/** + * @code Aaa. + */ +void test_nocrash1(int); + |