Skip to content

Commit a609e0f

Browse files
committed
add test
1 parent 8c14fc7 commit a609e0f

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
@@ -13118,6 +13118,9 @@ class TestOther : public TestFixture {
1311813118
check("struct S { int v(); explicit S(int v); };\n"
1311913119
"S::S(int v) : v(v) {}\n");
1312013120
ASSERT_EQUALS("", errout_str());
13121+
13122+
check("struct S { void g(float f) {} void f() {} };\n");
13123+
ASSERT_EQUALS("[test.cpp:1:36] -> [test.cpp:1:25]: (style) Argument 'f' shadows outer function [shadowFunction]\n", errout_str());
1312113124
}
1312213125

1312313126
void knownArgument() {

0 commit comments

Comments
 (0)