diff --git a/test/testautovariables.cpp b/test/testautovariables.cpp index fdfddabe9..464c36432 100644 --- a/test/testautovariables.cpp +++ b/test/testautovariables.cpp @@ -1867,7 +1867,7 @@ private: "}\n" "auto g() {\n" " std::vector v;\n" - " return by_value(v.front());\n" + " return by_value(v.begin());\n" "}\n"); TODO_ASSERT_EQUALS( "[test.cpp:7] -> [test.cpp:7] -> [test.cpp:3] -> [test.cpp:3] -> [test.cpp:6] -> [test.cpp:7]: (error) Returning object that points to local variable 'v' that will be invalid when returning.\n",