Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Oct 5, 2023
1 parent 962bddf commit 2ad9dcb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/testcondition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4940,6 +4940,11 @@ class TestCondition : public TestFixture {
" if (j >= 0) {}\n"
"}\n");
ASSERT_EQUALS("", errout.str());

check("void f(int i) {\n"
" if ((128 + i < 255 ? 128 + i : 255) > 0) {}\n"
"}\n");
ASSERT_EQUALS("", errout.str());
}

void alwaysTrueContainer() {
Expand Down

0 comments on commit 2ad9dcb

Please sign in to comment.