Add regression for 9917: false positive: bitwiseOnBoolean when lhs is non-boolean (#3664)
This commit is contained in:
parent
0c952ca05d
commit
4b04c86249
|
@ -851,6 +851,12 @@ private:
|
||||||
" return f() | f();\n"
|
" return f() | f();\n"
|
||||||
"}\n");
|
"}\n");
|
||||||
ASSERT_EQUALS("", errout.str());
|
ASSERT_EQUALS("", errout.str());
|
||||||
|
|
||||||
|
check("uint8 outcode(float p) {\n"
|
||||||
|
" float d = 0.;\n"
|
||||||
|
" return ((p - xm >= d) << 1) | (x - p > d);\n"
|
||||||
|
"}\n");
|
||||||
|
ASSERT_EQUALS("", errout.str());
|
||||||
}
|
}
|
||||||
|
|
||||||
void incrementBoolean() {
|
void incrementBoolean() {
|
||||||
|
|
Loading…
Reference in New Issue