diff options
Diffstat (limited to 'test/Sema/warn-documentation-unknown-command.cpp')
-rw-r--r-- | test/Sema/warn-documentation-unknown-command.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Sema/warn-documentation-unknown-command.cpp b/test/Sema/warn-documentation-unknown-command.cpp new file mode 100644 index 0000000..3674a9c --- /dev/null +++ b/test/Sema/warn-documentation-unknown-command.cpp @@ -0,0 +1,11 @@ +// RUN: %clang_cc1 -std=c++11 -fsyntax-only -Wdocumentation-unknown-command -verify %s +// RUN: %clang_cc1 -std=c++11 -fsyntax-only -Werror -Wno-documentation-unknown-command %s + +// expected-warning@+1 {{unknown command tag name}} +/// aaa \unknown +int test_unknown_comand_1; + +// expected-warning@+1 {{unknown command tag name 'retur'; did you mean 'return'?}} +/// \retur aaa +int test_unknown_comand_2(); + |