Skip to content

Commit 29760ce

Browse files
committed
update test
1 parent 975a52d commit 29760ce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/testother.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2909,7 +2909,7 @@ 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);");
2912+
check("struct X { int a[5]; }; void f(const X v) { (void) v; }");
29132913
ASSERT_EQUALS("[test.cpp:1:40]: (performance) Function parameter 'v' should be passed by const reference. [passedByValue]\n", errout_str());
29142914

29152915
check("extern \"C\" { struct X { int a[5]; }; void f(const X v); }");

0 commit comments

Comments
 (0)