We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fbdf7e8 commit 0ae94b5Copy full SHA for 0ae94b5
1 file changed
test/testtokenize.cpp
@@ -8709,6 +8709,10 @@ class TestTokenizer : public TestFixture {
8709
"{ 1",
8710
Token::Cpp11init::CPP11INIT);
8711
8712
+ testIsCpp11init("void f() { g([] { if (int x = 1; x) {} }); }", // #14790
8713
+ "{ int",
8714
+ Token::Cpp11init::NOINIT); // don't hang
8715
+
8716
ASSERT_NO_THROW(tokenizeAndStringify("template<typename U> struct X {};\n" // don't crash
8717
"template<typename T> auto f(T t) -> X<decltype(t + 1)> {}\n"));
8718
ASSERT_EQUALS("[test.cpp:2:22]: (debug) auto token with no type. [autoNoType]\n", errout_str());
0 commit comments