Skip to content

Commit 6c67588

Browse files
committed
Undo
1 parent 5781ffc commit 6c67588

1 file changed

Lines changed: 0 additions & 27 deletions

File tree

test/testother.cpp

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4867,33 +4867,6 @@ class TestOther : public TestFixture {
48674867
ASSERT_EQUALS("[test.cpp:1:12]: (style) Parameter 'p' can be declared as pointer to const [constParameterPointer]\n"
48684868
"[test.cpp:1:20]: (style) Parameter 'q' can be declared as pointer to const [constParameterPointer]\n",
48694869
errout_str());
4870-
4871-
check("struct S {\n" // #14817
4872-
" explicit S(int *a) : m{ a[0], a[1] } {}\n"
4873-
" int m[2];\n"
4874-
"};"
4875-
"struct T {\n"
4876-
" explicit T(int *a) : m{ &a[0], &a[1] } {}\n"
4877-
" int* m[2];\n"
4878-
"};\n"
4879-
"struct X{ int& r1, &r2; }\n"
4880-
"int f(int* a) {\n"
4881-
" S m[2]{a[0], a[1]};\n"
4882-
" return m[0].r1 + m[1].r2;\n"
4883-
"}\n");
4884-
ASSERT_EQUALS("[test.cpp:2:21]: (style) Parameter 'a' can be declared as pointer to const [constParameterPointer]\n",
4885-
errout_str());
4886-
4887-
check("class A {\n" // #11471
4888-
"public:\n"
4889-
" A(const int& i, int) : m_i(&i) {}\n"
4890-
" const int* m_i;\n"
4891-
"};\n"
4892-
"A f(int& s) {\n"
4893-
" return A(s, 0);\n"
4894-
"}\n");
4895-
ASSERT_EQUALS("[test.cpp:6:10]: (style) Parameter 's' can be declared as reference to const [constParameterReference]\n",
4896-
errout_str());
48974870
}
48984871

48994872
void constArray() {

0 commit comments

Comments
 (0)