This commit is contained in:
chrchr-github 2022-10-11 07:23:28 +02:00 committed by GitHub
parent 584a428025
commit c51fb3864a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -6247,6 +6247,14 @@ private:
" b->hash = (decltype(b->hash))(p);\n"
"}\n"));
ASSERT_NO_THROW(tokenizeAndStringify("void a(int);\n" // #10801
" struct b {\n"
" static int c();\n"
"} d;\n"
"void f() {\n"
" (decltype (&a)(d.c))(0);\n"
"}\n"));
// #10334: Do not hang!
tokenizeAndStringify("void foo(const std::vector<std::string>& locations = {\"\"}) {\n"
" for (int i = 0; i <= 123; ++i)\n"