Skip to content

Commit 007ab4b

Browse files
Update testother.cpp
1 parent c5180d7 commit 007ab4b

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎test/testother.cpp‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13520,6 +13520,13 @@ class TestOther : public TestFixture {
1352013520

1352113521
check("struct S { void g(float f) {} void f() {} };\n");
1352213522
ASSERT_EQUALS("[test.cpp:1:36] -> [test.cpp:1:25]: (style) Argument 'f' shadows outer function [shadowFunction]\n", errout_str());
13523+
13524+
check("int f() {\n" // #15114
13525+
" int i = 0;\n"
13526+
" return i;\n"
13527+
"}\n"
13528+
"int i = 1;\n");
13529+
ASSERT_EQUALS("", errout_str());
1352313530
}
1352413531

1352513532
void knownArgument() {

0 commit comments

Comments
 (0)