Skip to content

Commit 654d09a

Browse files
Update testother.cpp
1 parent 2f9bc54 commit 654d09a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/testother.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2435,8 +2435,10 @@ class TestOther : public TestFixture {
24352435
ASSERT_EQUALS("", errout_str());
24362436

24372437
check("void f(const std::vector<int> v[2]);\n" // #13052
2438-
"int g(const std::array<std::vector<int>, 2> a) { return a[0][0]; }\n");
2439-
ASSERT_EQUALS("[test.cpp:2]: (performance) Function parameter 'a' should be passed by const reference.\n", errout_str());
2438+
"void g(const std::vector<int> v[2]);\n"
2439+
"void g(const std::vector<int> v[2]) {}\n"
2440+
"int h(const std::array<std::vector<int>, 2> a) { return a[0][0]; }\n");
2441+
ASSERT_EQUALS("[test.cpp:4]: (performance) Function parameter 'a' should be passed by const reference.\n", errout_str());
24402442

24412443
/*const*/ Settings settings1 = settingsBuilder().platform(Platform::Type::Win64).build();
24422444
check("using ui64 = unsigned __int64;\n"

0 commit comments

Comments
 (0)