Skip to content

Commit da4e73b

Browse files
Update testother.cpp
1 parent b4ebcb4 commit da4e73b

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

test/testother.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8368,10 +8368,18 @@ class TestOther : public TestFixture {
83688368
"}\n"
83698369
"int h() {\n"
83708370
" return 0x1 | (0x1 | 0x2);\n"
8371+
"}\n"
8372+
"int i() {\n"
8373+
" return 0x2 | (0x4 | 0x1) | 0x1;\n"
8374+
"}\n"
8375+
"int j() {\n"
8376+
" return 0x2 | (0x1 | 0x4) | 0x1;\n"
83718377
"}\n");
83728378
ASSERT_EQUALS("[test.cpp:2:30]: (style) Same expression '0x1' found multiple times in chain of '|' operators. [duplicateExpression]\n"
83738379
"[test.cpp:5:23]: (style) Same expression '0x1' found multiple times in chain of '|' operators. [duplicateExpression]\n"
8374-
"[test.cpp:8:23]: (style) Same expression '0x1' found multiple times in chain of '|' operators. [duplicateExpression]\n",
8380+
"[test.cpp:8:23]: (style) Same expression '0x1' found multiple times in chain of '|' operators. [duplicateExpression]\n"
8381+
"[test.cpp:11:23]: (style) Same expression '0x1' found multiple times in chain of '|' operators. [duplicateExpression]\n"
8382+
"[test.cpp:14:23]: (style) Same expression '0x1' found multiple times in chain of '|' operators. [duplicateExpression]\n",
83758383
errout_str());
83768384
}
83778385

0 commit comments

Comments
 (0)