Skip to content

Commit

Permalink
Update testother.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Aug 28, 2024
1 parent 6fc3b04 commit 67f95f0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/testother.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2332,6 +2332,10 @@ class TestOther : public TestFixture {
" char a[20];\n"
"};\n");
ASSERT_EQUALS("", errout_str());

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

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

0 comments on commit 67f95f0

Please sign in to comment.