You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/testother.cpp
+9-2Lines changed: 9 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -11572,7 +11572,7 @@ class TestOther : public TestFixture {
11572
11572
" return xp > yp;\n"
11573
11573
"}");
11574
11574
ASSERT_EQUALS(
11575
-
"[test.cpp:1] -> [test.cpp:5] -> [test.cpp:1] -> [test.cpp:6] -> [test.cpp:7]: (error) Comparing pointers that point to different objects\n"
11575
+
"[test.cpp:3] -> [test.cpp:5] -> [test.cpp:4] -> [test.cpp:6] -> [test.cpp:7]: (error) Comparing pointers that point to different objects\n"
11576
11576
"[test.cpp:5]: (style) Variable 'xp' can be declared as pointer to const\n"
11577
11577
"[test.cpp:6]: (style) Variable 'yp' can be declared as pointer to const\n"
11578
11578
"[test.cpp:5]: (style) Variable 'xp' can be declared as pointer to const\n"// duplicate
@@ -11667,8 +11667,15 @@ class TestOther : public TestFixture {
11667
11667
"int f(S s1, S s2) {\n"
11668
11668
" return &s1.i - reinterpret_cast<int*>(&s2);\n"
11669
11669
"}\n");
11670
-
ASSERT_EQUALS("[test.cpp:1] -> [test.cpp:3] -> [test.cpp:2] -> [test.cpp:3] -> [test.cpp:3]: (error) Subtracting pointers that point to different objects\n",
11670
+
ASSERT_EQUALS("[test.cpp:2] -> [test.cpp:3] -> [test.cpp:2] -> [test.cpp:3] -> [test.cpp:3]: (error) Subtracting pointers that point to different objects\n",
0 commit comments