File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments