diff --git a/test/testtokenize.cpp b/test/testtokenize.cpp index 222967d19..15982be83 100644 --- a/test/testtokenize.cpp +++ b/test/testtokenize.cpp @@ -6719,6 +6719,16 @@ private: " ;\n" "}\n")); + // #9523 + ASSERT_NO_THROW(tokenizeAndStringify( + "template struct a;\n" + "template struct b;\n" + "template struct b::d> {\n" + " void e() {\n" + " if (0) {}\n" + " }\n" + "};\n")); + ASSERT_NO_THROW(tokenizeAndStringify( "template \n" "constexpr void constexpr_for_fold_impl([[maybe_unused]] Functor&& f, std::index_sequence) noexcept {\n"