You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 449ee24
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: test/testother.cpp
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -4914,6 +4914,18 @@ class TestOther : public TestFixture {
4914
4914
ASSERT_EQUALS("[test.cpp:2:14]: (style) Parameter 's' can be declared as pointer to const [constParameterPointer]\n"
4915
4915
"[test.cpp:2:46]: (style) Parameter 'p' can be declared as pointer to const [constParameterPointer]\n",
4916
4916
errout_str());
4917
+
4918
+
check("struct S : U {\n" // #13944
4919
+
" void f(int* p) const {\n"
4920
+
" if (m == p) {}\n"
4921
+
" }\n"
4922
+
" void g(int* p) final {\n"
4923
+
" if (m == p) {}\n"
4924
+
" }\n"
4925
+
" int* m;\n"
4926
+
"};\n");
4927
+
ASSERT_EQUALS("[test.cpp:2:17]: (style) Either there is a missing override/final keyword, or the parameter 'p' can be declared as pointer to const [constParameterPointer]\n",
0 commit comments