diff --git a/clang-tools-extra/test/clang-tidy/misc-misplaced-const.cpp b/clang-tools-extra/test/clang-tidy/misc-misplaced-const.cpp index 5483cabae7f8..d7ea893c2156 100644 --- a/clang-tools-extra/test/clang-tidy/misc-misplaced-const.cpp +++ b/clang-tools-extra/test/clang-tidy/misc-misplaced-const.cpp @@ -26,7 +26,14 @@ struct S { template struct S; template struct S; // ok template struct S; -template struct S; // ok + +template +struct U { + const Ty *i; + const Ty &i2; +}; + +template struct U; // ok struct T { typedef void (T::*PMF)();