C++: Annotation field flow tests with [IR] and [AST]

This commit is contained in:
Mathias Vorreiter Pedersen
2020-05-13 15:16:02 +02:00
parent f5e491caf0
commit 34314d0cb6
11 changed files with 42 additions and 42 deletions

View File

@@ -6,7 +6,7 @@ class B
Elem *e = new Elem();
Box1 *b1 = new Box1(e, nullptr);
Box2 *b2 = new Box2(b1);
sink(b2->box1->elem1); // flow
sink(b2->box1->elem1); // flow [NOT DETECTED by IR]
sink(b2->box1->elem2); // no flow
}
@@ -16,7 +16,7 @@ class B
Box1 *b1 = new B::Box1(nullptr, e);
Box2 *b2 = new Box2(b1);
sink(b2->box1->elem1); // no flow
sink(b2->box1->elem2); // flow
sink(b2->box1->elem2); // flow [NOT DETECTED by IR]
}
static void sink(void *o) {}