Skip to content

Commit 5db5d7f

Browse files
Update testother.cpp
1 parent a236dc8 commit 5db5d7f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎test/testother.cpp‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5091,8 +5091,11 @@ class TestOther : public TestFixture {
50915091
check("int* f(int* s) {\n" // #15219
50925092
" int* q = s - 1;\n"
50935093
" return q;\n"
5094+
"}\n"
5095+
"int g(int* p) {\n"
5096+
" return *(p - 1);\n"
50945097
"}\n");
5095-
ASSERT_EQUALS("", errout_str());
5098+
ASSERT_EQUALS("[test.cpp:5:12]: (style) Parameter 'p' can be declared as pointer to const [constParameterPointer]\n", errout_str());
50965099
}
50975100

50985101
void constArray() {

0 commit comments

Comments
 (0)