ExprEngine: test pointer
This commit is contained in:
parent
f80d387374
commit
7e850e3e4b
|
@ -265,9 +265,13 @@ private:
|
||||||
|
|
||||||
|
|
||||||
void pointer1() {
|
void pointer1() {
|
||||||
const char code[] = "void f(unsigned char *p) { a = *p; }";
|
const char code[] = "void f(unsigned char *p) { return *p == 7; }";
|
||||||
ASSERT_EQUALS("->$1,null,->?", getRange(code, "p"));
|
ASSERT_EQUALS("->$1,null,->?", getRange(code, "p"));
|
||||||
// TODO expr
|
ASSERT_EQUALS("(declare-fun v0 () Int)\n"
|
||||||
|
"(assert (<= v0 255))\n"
|
||||||
|
"(assert (>= v0 0))\n"
|
||||||
|
"(assert (= v0 7))\n",
|
||||||
|
expr(code, "=="));
|
||||||
}
|
}
|
||||||
|
|
||||||
void pointerAlias1() {
|
void pointerAlias1() {
|
||||||
|
|
Loading…
Reference in New Issue