Skip to content

Commit

Permalink
Update testincompletestatement.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github authored Jan 3, 2025
1 parent 7b17a1d commit 9c51eb7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/testincompletestatement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,13 @@ class TestIncompleteStatement : public TestFixture {
"}\n");
ASSERT_EQUALS("[test.cpp:2]: (warning) Redundant code: Found unused array access.\n",
errout_str());

check("void f() {\n" // #13153
" []() {} ();\n"
" []() {};\n"
"}\n");
ASSERT_EQUALS("[test.cpp:3]: (warning) Redundant code: Found unused lambda.\n",
errout_str());
}

void vardecl() {
Expand Down

0 comments on commit 9c51eb7

Please sign in to comment.