Skip to content

Commit 8387608

Browse files
Update testother.cpp
1 parent 746b3a7 commit 8387608

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎test/testother.cpp‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4201,6 +4201,14 @@ class TestOther : public TestFixture {
42014201
" }\n"
42024202
"}\n");
42034203
ASSERT_EQUALS("", errout_str());
4204+
4205+
check("struct S {\n" // #15087
4206+
" int a, b;\n"
4207+
"};\n"
4208+
"int& f(S& s, bool b) {\n"
4209+
" return b ? s.a : s.b;\n"
4210+
"}\n");
4211+
ASSERT_EQUALS("", errout_str());
42044212
}
42054213

42064214
void constParameterCallback() {

0 commit comments

Comments
 (0)