Skip to content

Commit

Permalink
Update testclass.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github authored Apr 11, 2024
1 parent 7adfb08 commit 7bfb95c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/testclass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8980,7 +8980,12 @@ class TestClass : public TestFixture {
"struct D : B {\n"
" std::string f() override { return s; }\n"
" std::string s;\n"
"}");
"};\n");
ASSERT_EQUALS("", errout_str());

checkReturnByReference("struct S {\n"
" std::string f(std::string s) { return s; }\n"
"};\n");
ASSERT_EQUALS("", errout_str());
}
};
Expand Down

0 comments on commit 7bfb95c

Please sign in to comment.