Skip to content

Commit

Permalink
Fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Jul 28, 2023
1 parent 1bb4a49 commit bc5c5ce
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/testother.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3786,6 +3786,14 @@ class TestOther : public TestFixture {
" p = q;\n"
"}\n");
ASSERT_EQUALS("", errout.str());


check("struct S { int a[1]; };\n"
"void f(S* s) {\n"
" if (s->a[0]) {}\n"
"}\n");
ASSERT_EQUALS("[test.cpp:2]: (style) Parameter 's' can be declared as pointer to const\n",
errout.str());
}

void switchRedundantAssignmentTest() {
Expand Down

0 comments on commit bc5c5ce

Please sign in to comment.