Skip to content

Commit 151cdfc

Browse files
committed
add test
1 parent 21ea669 commit 151cdfc

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
@@ -13124,6 +13124,9 @@ class TestOther : public TestFixture {
1312413124

1312513125
check("struct S { static int i(); static void f(int i) {} };\n");
1312613126
ASSERT_EQUALS("[test.cpp:1:23] -> [test.cpp:1:46]: (style) Argument 'i' shadows outer function [shadowFunction]\n", errout_str());
13127+
13128+
check("struct S { void g(float f) {} void f() {} };\n");
13129+
ASSERT_EQUALS("[test.cpp:1:36] -> [test.cpp:1:25]: (style) Argument 'f' shadows outer function [shadowFunction]\n", errout_str());
1312713130
}
1312813131

1312913132
void knownArgument() {

0 commit comments

Comments
 (0)