We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d3e6f3 commit 4aa6385Copy full SHA for 4aa6385
1 file changed
test/testcondition.cpp
@@ -3481,6 +3481,14 @@ class TestCondition : public TestFixture {
3481
" if (y.empty()) return;\n"
3482
"}\n");
3483
ASSERT_EQUALS("", errout.str());
3484
+
3485
+ // #9106
3486
+ check("struct A {int b;};\n"
3487
+ "void f(A a, int c) {\n"
3488
+ " if (a.b) a.b = c;\n"
3489
+ " if (a.b) {}\n"
3490
+ "}\n");
3491
+ ASSERT_EQUALS("", errout.str());
3492
}
3493
3494
void checkInvalidTestForOverflow() {
0 commit comments