Skip to content

Commit 27cbb8c

Browse files
Update testcondition.cpp
1 parent 2145c4a commit 27cbb8c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

test/testcondition.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5222,6 +5222,12 @@ class TestCondition : public TestFixture {
52225222
" if (c) {}\n"
52235223
"}\n");
52245224
ASSERT_EQUALS("", errout_str());
5225+
5226+
check("void f(int a, int b) {\n" // #11437
5227+
" a = a < b ? b : a;\n"
5228+
" if (a != b) {}\n"
5229+
"}\n");
5230+
ASSERT_EQUALS("", errout_str());
52255231
}
52265232

52275233
void alwaysTrueInfer() {

0 commit comments

Comments
 (0)