Skip to content

Commit 26e2547

Browse files
Update testother.cpp
1 parent 605f042 commit 26e2547

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

test/testother.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4120,6 +4120,11 @@ class TestOther : public TestFixture {
41204120
" std::string _s;\n"
41214121
"};\n");
41224122
ASSERT_EQUALS("", errout_str());
4123+
4124+
check("void f(std::optional<int>& o) {\n"
4125+
" *o = 1;\n"
4126+
"}\n");
4127+
ASSERT_EQUALS("", errout_str());
41234128
}
41244129

41254130
void constParameterCallback() {

0 commit comments

Comments
 (0)