File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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 "
You can’t perform that action at this time.
0 commit comments