Skip to content

Commit f1637c7

Browse files
Update testother.cpp
1 parent a181ec2 commit f1637c7

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

test/testother.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8381,6 +8381,11 @@ class TestOther : public TestFixture {
83818381
"[test.cpp:11:23]: (style) Same expression '0x1' found multiple times in chain of '|' operators. [duplicateExpression]\n"
83828382
"[test.cpp:14:23]: (style) Same expression '0x1' found multiple times in chain of '|' operators. [duplicateExpression]\n",
83838383
errout_str());
8384+
8385+
check("bool f(const int** a, const int** b) {\n"
8386+
" return (a[0] != nullptr) != (b[0] != nullptr);\n"
8387+
"}\n");
8388+
ASSERT_EQUALS("", errout_str());
83848389
}
83858390

83868391
void duplicateExpressionLoop() {

0 commit comments

Comments
 (0)