Skip to content

Commit 72c8fbd

Browse files
Update testother.cpp
1 parent 2c4eeea commit 72c8fbd

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎test/testother.cpp‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4300,6 +4300,11 @@ class TestOther : public TestFixture {
43004300
"}\n");
43014301
ASSERT_EQUALS("[test.cpp:3:7]: (style) Variable 'a' can be declared as const array [constVariable]\n",
43024302
errout_str());
4303+
4304+
check("void f(V& v) {\n"
4305+
" std::sort(&v(1), &v(10));\n"
4306+
"}\n");
4307+
ASSERT_EQUALS("", errout_str());
43034308
}
43044309

43054310
void constParameterCallback() {

0 commit comments

Comments
 (0)