Skip to content

Commit 4d2a1ea

Browse files
committed
C++: Also add a FP test to 'OverflowStatic'.
1 parent 8623d8e commit 4d2a1ea

File tree

1 file changed

+5
-0
lines changed
  • cpp/ql/test/query-tests/Critical/OverflowStatic

1 file changed

+5
-0
lines changed

cpp/ql/test/query-tests/Critical/OverflowStatic/test.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,8 @@ void f3() {
5656
}
5757
}
5858
}
59+
60+
int unevaluated_test() {
61+
char buffer[100];
62+
return sizeof(buffer) / sizeof(buffer[101]); // GOOD [FALSE POSITIVE]
63+
}

0 commit comments

Comments
 (0)