Skip to content

Commit ef48eee

Browse files
committed
Add test for shadowed method
1 parent 6566cbd commit ef48eee

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

test/testother.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12912,6 +12912,10 @@ class TestOther : public TestFixture {
1291212912
check("struct S { int v; explicit S(int v); };\n"
1291312913
"S::S(int v) : v(v) {}\n");
1291412914
ASSERT_EQUALS("", errout_str());
12915+
12916+
check("struct S { int v(); explicit S(int v); };\n"
12917+
"S::S(int v) : v(v) {}\n");
12918+
ASSERT_EQUALS("", errout_str());
1291512919
}
1291612920

1291712921
void knownArgument() {

0 commit comments

Comments
 (0)