Skip to content

Commit e397e5d

Browse files
committed
Add new testcase to arraylengthanalysis library.
1 parent 1c9fa4e commit e397e5d

File tree

1 file changed

+5
-0
lines changed
  • cpp/ql/test/experimental/library-tests/rangeanalysis/arraylengthanalysis

1 file changed

+5
-0
lines changed

cpp/ql/test/experimental/library-tests/rangeanalysis/arraylengthanalysis/test.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,8 @@ void test2(unsigned int count, bool b) {
8888
a = (int*) malloc(sizeof(int) * (1024 - count));
8989
sink(a); // none, as the size expression is too complicated
9090
}
91+
92+
void test3(unsigned int object) {
93+
unsigned int* ptr = &object;
94+
sink(ptr); // TODO, none, but should be (Zero, 1, Zero, 0)
95+
}

0 commit comments

Comments
 (0)