Skip to content

Commit 94e20d6

Browse files
committed
add test
1 parent 376b31e commit 94e20d6

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

1320813208
check("struct S { static int i(); static void f(int i) {} };\n");
1320913209
ASSERT_EQUALS("[test.cpp:1:23] -> [test.cpp:1:46]: (style) Argument 'i' shadows outer function [shadowFunction]\n", errout_str());
13210+
13211+
check("struct S { void g(float f) {} void f() {} };\n");
13212+
ASSERT_EQUALS("[test.cpp:1:36] -> [test.cpp:1:25]: (style) Argument 'f' shadows outer function [shadowFunction]\n", errout_str());
1321013213
}
1321113214

1321213215
void knownArgument() {

0 commit comments

Comments
 (0)