Skip to content

Commit 86b80d3

Browse files
Update test/testother.cpp
Co-authored-by: Oliver Stöneberg <firewave@users.noreply.github.com>
1 parent 1380219 commit 86b80d3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

test/testother.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2909,6 +2909,9 @@ class TestOther : public TestFixture {
29092909
check("struct X { int a[5]; }; extern \"C\" void f(X v) { }");
29102910
ASSERT_EQUALS("", errout_str());
29112911

2912+
check("struct X { int a[5]; }; void f(const X v);");
2913+
ASSERT_EQUALS("", errout_str());
2914+
29122915
check("struct X { int a[5]; }; void f(const X v) { (void) v; }");
29132916
ASSERT_EQUALS("[test.cpp:1:40]: (performance) Function parameter 'v' should be passed by const reference. [passedByValue]\n", errout_str());
29142917

0 commit comments

Comments
 (0)