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
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -10905,6 +10905,14 @@ class TestOther : public TestFixture {
10905
10905
"}");
10906
10906
ASSERT_EQUALS("[test.cpp:3]: (style) Argument '(int)((x&0x01)>>7)' to function g is always 0. It does not matter what value 'x' has.\n", errout.str());
10907
10907
10908
+
check("void g(int, int);\n"
10909
+
"void f(int x) {\n"
10910
+
" g(x, (x & 0x01) >> 7);\n"
10911
+
"}");
10912
+
ASSERT_EQUALS(
10913
+
"[test.cpp:3]: (style) Argument '(x&0x01)>>7' to function g is always 0. It does not matter what value 'x' has.\n",
0 commit comments