diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-12-02 07:38:30 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-12-02 07:38:30 +0000 |
commit | edb95d3f9eb354b30baddd58fee5d2e7b3da2c92 (patch) | |
tree | ca2e3256f3bb5f2a036cccc9705e0876f1dd8408 /test | |
parent | db60e42e35d980119c12b1a2e8b627817c8449f4 (diff) | |
download | clang-edb95d3f9eb354b30baddd58fee5d2e7b3da2c92.tar.gz |
Merging r196048:
------------------------------------------------------------------------
r196048 | d0k | 2013-12-01 07:09:32 -0800 (Sun, 01 Dec 2013) | 3 lines
CommentLexer: When proceeding with a typo corrected name don't clobber the token.
This would crash if the token is used in another diagnostic. PR18051.
------------------------------------------------------------------------
git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_34@196075 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Sema/warn-documentation-fixits.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Sema/warn-documentation-fixits.cpp b/test/Sema/warn-documentation-fixits.cpp index a5a477f66d..675d86c366 100644 --- a/test/Sema/warn-documentation-fixits.cpp +++ b/test/Sema/warn-documentation-fixits.cpp @@ -70,6 +70,11 @@ int gorf(); /// \t bbb IS_DOXYGEN_END int Bar(); +// expected-warning@+2 {{unknown command tag name 'encode'; did you mean 'endcode'?}} +// expected-warning@+1 {{'\endcode' command does not terminate a verbatim text block}} +/// \encode PR18051 +int PR18051(); + // CHECK: fix-it:"{{.*}}":{5:12-5:22}:"a" // CHECK: fix-it:"{{.*}}":{9:12-9:15}:"aaa" // CHECK: fix-it:"{{.*}}":{13:13-13:23}:"T" @@ -83,3 +88,4 @@ int Bar(); // CHECK: fix-it:"{{.*}}":{58:30-58:30}:" MY_ATTR_DEPRECATED" // CHECK: fix-it:"{{.*}}":{63:6-63:11}:"return" // CHECK: fix-it:"{{.*}}":{67:6-67:11}:"foobar" +// CHECK: fix-it:"{{.*}}":{75:6-75:12}:"endcode" |