Fix test case, my change is reverted
This commit is contained in:
parent
79bb22f038
commit
2e7725dfa7
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue