Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion cfg/std.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7765,7 +7765,6 @@ initializer list (7) string& replace (const_iterator i1, const_iterator i2, init
<use-retval/>
<arg nr="1">
<not-uninit/>
<iterator container="1" type="first"/>
</arg>
</function>
<!-- template< class ForwardIt, class T > bool binary_search( ForwardIt first, ForwardIt last, const T& value ); (until C++20) -->
Expand Down
9 changes: 9 additions & 0 deletions test/teststl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5780,6 +5780,15 @@ class TestStl : public TestFixture {
"}\n",
true);
ASSERT_EQUALS("", errout.str());

check("extern void f(std::string&&);\n"
"static void func() {\n"
" std::string s;\n"
" const std::string& s_ref = s;\n"
" f(std::move(s));\n"
"}\n",
true);
ASSERT_EQUALS("", errout.str());
}

void checkMutexes() {
Expand Down