diff --git a/cfg/std.cfg b/cfg/std.cfg index cd024c437..c56b3a286 100644 --- a/cfg/std.cfg +++ b/cfg/std.cfg @@ -7765,7 +7765,6 @@ initializer list (7) string& replace (const_iterator i1, const_iterator i2, init - diff --git a/test/teststl.cpp b/test/teststl.cpp index 51f1613de..35f0c3888 100644 --- a/test/teststl.cpp +++ b/test/teststl.cpp @@ -5780,6 +5780,15 @@ private: "}\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() {