diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2013-03-04 20:08:47 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2013-03-04 20:08:47 +0000 |
commit | c9320095d0126a104552ae718af461ad53316a34 (patch) | |
tree | 21ecf5fca884bd40e4701a22f2e82ff519d7fd09 /test/Sema/warn-documentation.cpp | |
parent | 0090591e505637cf2d9ea3b45768334d78d24ca2 (diff) |
[comment parsing] source fidelity for tparam command too.
// rdar://13066276
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176448 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/warn-documentation.cpp')
-rw-r--r-- | test/Sema/warn-documentation.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Sema/warn-documentation.cpp b/test/Sema/warn-documentation.cpp index 220f84508f..d054fac990 100644 --- a/test/Sema/warn-documentation.cpp +++ b/test/Sema/warn-documentation.cpp @@ -799,6 +799,10 @@ void test_attach37<int>::test_attach38(int aaa, int bbb) {} template<typename T> void test_attach37<T>::test_attach39(int aaa, int bbb) {} +// expected-warning@+1 {{'@tparam' command used in a comment that is not attached to a template declaration}} +/// @tparam T Aaa +int test_tparam22; + // We used to emit warning that parameter 'a' is not found because we parsed // the comment in context of the redeclaration which does not have parameter // names. |