We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dbae23c commit d40935cCopy full SHA for d40935c
1 file changed
test/testother.cpp
@@ -4824,6 +4824,12 @@ class TestOther : public TestFixture {
4824
"}\n");
4825
ASSERT_EQUALS("[test.cpp:2:10]: (style) Parameter 's' can be declared as pointer to const [constParameterPointer]\n", errout_str());
4826
4827
+ check("struct S { int a[1][1]; };\n" // #14714
4828
+ "int f(S* s) {\n"
4829
+ " return s->a[0][0] ? 1 : 0;\n"
4830
+ "}\n");
4831
+ ASSERT_EQUALS("[test.cpp:2:10]: (style) Parameter 's' can be declared as pointer to const [constParameterPointer]\n", errout_str());
4832
+
4833
check("int f(int *p, int *q) {\n" // #14748
4834
" return p ? *p : *q;\n"
4835
"}\n"
0 commit comments