Fix test case, my change is reverted
This commit is contained in:
parent
79bb22f038
commit
2e7725dfa7
|
@ -1867,7 +1867,7 @@ private:
|
||||||
"}\n"
|
"}\n"
|
||||||
"auto g() {\n"
|
"auto g() {\n"
|
||||||
" std::vector<int> v;\n"
|
" std::vector<int> v;\n"
|
||||||
" return by_value(v.front());\n"
|
" return by_value(v.begin());\n"
|
||||||
"}\n");
|
"}\n");
|
||||||
TODO_ASSERT_EQUALS(
|
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",
|
"[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",
|
||||||
|
|
Loading…
Reference in New Issue