Skip to content

Commit f2333b8

Browse files
Update testother.cpp
1 parent 6467482 commit f2333b8

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

‎test/testother.cpp‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4966,9 +4966,8 @@ class TestOther : public TestFixture {
49664966
" int i = 0;\n"
49674967
" return [](int* p) { return *p; }(&i);\n"
49684968
"}\n");
4969-
TODO_ASSERT_EQUALS("[test.cpp:3:20]: (style) Parameter 'p' can be declared as pointer to const [constParameterPointer]\n",
4970-
"",
4971-
errout_str());
4969+
ASSERT_EQUALS("[test.cpp:3:20]: (style) Parameter 'p' can be declared as pointer to const [constParameterPointer]\n",
4970+
errout_str());
49724971

49734972
check("struct S {\n" // #14571
49744973
" char* c;\n"
@@ -5104,8 +5103,11 @@ class TestOther : public TestFixture {
51045103
"}\n"
51055104
"U g(int* p, int n) {\n"
51065105
" return *(p + n);\n"
5106+
"}\n"
5107+
"auto h(int* p) {\n"
5108+
" return *p;\n"
51075109
"}\n");
5108-
ASSERT_EQUALS("", errout_str());
5110+
ASSERT_EQUALS("[test.cpp:7:13]: (style) Parameter 'p' can be declared as pointer to const [constParameterPointer]\n", errout_str());
51095111
}
51105112

51115113
void constArray() {

0 commit comments

Comments
 (0)