Skip to content

Commit d40935c

Browse files
Update testother.cpp
1 parent dbae23c commit d40935c

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
@@ -4824,6 +4824,12 @@ class TestOther : public TestFixture {
48244824
"}\n");
48254825
ASSERT_EQUALS("[test.cpp:2:10]: (style) Parameter 's' can be declared as pointer to const [constParameterPointer]\n", errout_str());
48264826

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+
48274833
check("int f(int *p, int *q) {\n" // #14748
48284834
" return p ? *p : *q;\n"
48294835
"}\n"

0 commit comments

Comments
 (0)