ValueFlow: Removed testcases for code that has been removed
This commit is contained in:
parent
789b01aad2
commit
37f3c6881b
|
@ -996,18 +996,6 @@ private:
|
||||||
TODO_ASSERT_EQUALS(true, false, testValueOfX(code, 3U, 0));
|
TODO_ASSERT_EQUALS(true, false, testValueOfX(code, 3U, 0));
|
||||||
ASSERT_EQUALS(false, testValueOfX(code, 4U, 0));
|
ASSERT_EQUALS(false, testValueOfX(code, 4U, 0));
|
||||||
|
|
||||||
code = "void f() {\n" // #6044 - hang
|
|
||||||
" decal_t *decal = &decals[i++];\n"
|
|
||||||
" x = (int)((decal) && (decal->color));\n"
|
|
||||||
"}";
|
|
||||||
testValueOfX(code, 0U, 0);
|
|
||||||
|
|
||||||
code = "void f() {\n" // don't hang in valueFlowForward analysis
|
|
||||||
" int x = 0;\n"
|
|
||||||
" f2((char*)a[b?c[x]:x]);\n"
|
|
||||||
"}";
|
|
||||||
testValueOfX(code, 0U, 0);
|
|
||||||
|
|
||||||
// TODO: float
|
// TODO: float
|
||||||
code = "void f(float x) {\n"
|
code = "void f(float x) {\n"
|
||||||
" if (x == 0.5) {}\n"
|
" if (x == 0.5) {}\n"
|
||||||
|
|
Loading…
Reference in New Issue