Skip to content

Commit c209a77

Browse files
committed
Add test
1 parent 123a360 commit c209a77

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

test/testunusedvar.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6681,6 +6681,10 @@ class TestUnusedVar : public TestFixture {
66816681
" C c(12);\n"
66826682
"}");
66836683
ASSERT_EQUALS("", errout_str());
6684+
6685+
functionVariableUsage("class S { S(int); };\n"
6686+
"void f() { S s = 0; }\n");
6687+
ASSERT_EQUALS("", errout_str());
66846688
}
66856689

66866690
void localVarSmartPtr() {

0 commit comments

Comments
 (0)