Skip to content

Commit

Permalink
Update testclass.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Apr 17, 2024
1 parent 881bf18 commit 6a749b7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/testclass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8951,6 +8951,10 @@ class TestClass : public TestFixture {
" std::string f(std::string s) { return s; }\n"
"};\n");
ASSERT_EQUALS("", errout_str());

checkReturnByReference("struct S { S(); };\n" // #12620
"S::S() = delete;\n");
ASSERT_EQUALS("", errout_str()); // don't crash
}
};

Expand Down

0 comments on commit 6a749b7

Please sign in to comment.