From 2e7725dfa765bc37bf054caeee44fb5222dbae91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Wed, 15 May 2019 07:06:04 +0200 Subject: [PATCH] Fix test case, my change is reverted --- test/testautovariables.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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",