Fix test case, my change is reverted

This commit is contained in:
Daniel Marjamäki 2019-05-15 07:06:04 +02:00
parent 79bb22f038
commit 2e7725dfa7
1 changed files with 1 additions and 1 deletions

View File

@ -1867,7 +1867,7 @@ private:
"}\n"
"auto g() {\n"
" std::vector<int> 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",