Add new testcase to arraylengthanalysis library.

This commit is contained in:
Cornelius Riemenschneider
2020-05-06 16:34:57 +02:00
parent 1c9fa4eb1d
commit e397e5d325

View File

@@ -88,3 +88,8 @@ void test2(unsigned int count, bool b) {
a = (int*) malloc(sizeof(int) * (1024 - count));
sink(a); // none, as the size expression is too complicated
}
void test3(unsigned int object) {
unsigned int* ptr = &object;
sink(ptr); // TODO, none, but should be (Zero, 1, Zero, 0)
}