We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0c44c2 commit 475e456Copy full SHA for 475e456
1 file changed
test/testtokenize.cpp
@@ -7071,6 +7071,23 @@ class TestTokenizer : public TestFixture {
7071
"}\n"));
7072
ASSERT_EQUALS("", errout_str());
7073
7074
+ ASSERT_NO_THROW(tokenizeAndStringify("int foo() {\n"
7075
+ " connect([]( const int& f ) {\n"
7076
+ " switch( f )\n"
7077
+ " {\n"
7078
+ " case (int)1:\n"
7079
7080
+ " A r(f);\n"
7081
+ " if (1) {}\n"
7082
+ " }\n"
7083
+ " break;\n"
7084
7085
+ " return 0;\n"
7086
+ " });\n"
7087
7088
+ "}\n"));
7089
+ ASSERT_EQUALS("", errout_str());
7090
+
7091
// #11378
7092
ASSERT_EQUALS("gT{(&[{= 0return", testAst("auto g = T{ [&]() noexcept -> int { return 0; } };"));
7093
0 commit comments