Skip to content

Commit d1a7da3

Browse files
Update testautovariables.cpp
1 parent 18eb218 commit d1a7da3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test/testautovariables.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4033,7 +4033,7 @@ class TestAutoVariables : public TestFixture {
40334033
"}");
40344034
ASSERT_EQUALS(
40354035
"[test.cpp:3:28] -> [test.cpp:3:28] -> [test.cpp:2:9] -> [test.cpp:4:12]: (error) Returning object that points to local variable 'i' that will be invalid when returning. [returnDanglingLifetime]\n"
4036-
"[test.cpp:3:32] -> [test.cpp:3:32] -> [test.cpp:2:9] -> [test.cpp:4:12]: (error) Returning object that points to local variable 'i' that will be invalid when returning. [returnDanglingLifetime]\n", // duplicate
4036+
"[test.cpp:3:32] -> [test.cpp:3:32] -> [test.cpp:2:9] -> [test.cpp:4:12]: (error) Returning object that points to local variable 'i' that will be invalid when returning. [returnDanglingLifetime]\n",
40374037
errout_str());
40384038

40394039
check("std::vector<int*> f() {\n"
@@ -4043,7 +4043,7 @@ class TestAutoVariables : public TestFixture {
40434043
"}");
40444044
ASSERT_EQUALS(
40454045
"[test.cpp:3:25] -> [test.cpp:3:25] -> [test.cpp:2:9] -> [test.cpp:4:12]: (error) Returning object that points to local variable 'i' that will be invalid when returning. [returnDanglingLifetime]\n"
4046-
"[test.cpp:3:29] -> [test.cpp:3:29] -> [test.cpp:2:9] -> [test.cpp:4:12]: (error) Returning object that points to local variable 'i' that will be invalid when returning. [returnDanglingLifetime]\n", // duplicate
4046+
"[test.cpp:3:29] -> [test.cpp:3:29] -> [test.cpp:2:9] -> [test.cpp:4:12]: (error) Returning object that points to local variable 'i' that will be invalid when returning. [returnDanglingLifetime]\n",
40474047
errout_str());
40484048

40494049
check("std::vector<int*> f() {\n"
@@ -4052,7 +4052,7 @@ class TestAutoVariables : public TestFixture {
40524052
"}");
40534053
ASSERT_EQUALS(
40544054
"[test.cpp:3:13] -> [test.cpp:3:13] -> [test.cpp:2:9] -> [test.cpp:3:12]: (error) Returning object that points to local variable 'i' that will be invalid when returning. [returnDanglingLifetime]\n"
4055-
"[test.cpp:3:17] -> [test.cpp:3:17] -> [test.cpp:2:9] -> [test.cpp:3:12]: (error) Returning object that points to local variable 'i' that will be invalid when returning. [returnDanglingLifetime]\n", // duplicate
4055+
"[test.cpp:3:17] -> [test.cpp:3:17] -> [test.cpp:2:9] -> [test.cpp:3:12]: (error) Returning object that points to local variable 'i' that will be invalid when returning. [returnDanglingLifetime]\n",
40564056
errout_str());
40574057

40584058
check("std::vector<int*> f(int& x) {\n"

0 commit comments

Comments
 (0)