diff --git a/test/testother.cpp b/test/testother.cpp index f43cd28a6a8..0770634a037 100644 --- a/test/testother.cpp +++ b/test/testother.cpp @@ -2332,6 +2332,10 @@ class TestOther : public TestFixture { " char a[20];\n" "};\n"); ASSERT_EQUALS("", errout_str()); + + check("void f(const std::vector v[2]);\n" // #13052 + "int g(const std::array, 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"