Skip to content

Commit c4aaad9

Browse files
Update testother.cpp
1 parent 1407e6b commit c4aaad9

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

test/testother.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4807,6 +4807,12 @@ class TestOther : public TestFixture {
48074807
" return bar = 0;\n"
48084808
"}\n");
48094809
ASSERT_EQUALS("", errout_str());
4810+
4811+
check("struct S { int x; };\n" // #14700
4812+
"int f(S* s) {\n"
4813+
" return s->x ? 1 : 0;\n"
4814+
"}\n");
4815+
ASSERT_EQUALS("[test.cpp:2:10]: (style) Parameter 's' can be declared as pointer to const [constParameterPointer]\n", errout_str());
48104816
}
48114817

48124818
void constArray() {

0 commit comments

Comments
 (0)