Skip to content

Commit 3b4fdb3

Browse files
calumgrantjketema
andauthored
Update cpp/ql/test/query-tests/Likely Bugs/Underspecified Functions/test.c
Co-authored-by: Jeroen Ketema <[email protected]>
1 parent 60155ce commit 3b4fdb3

File tree

1 file changed

+2
-1
lines changed
  • cpp/ql/test/query-tests/Likely Bugs/Underspecified Functions

1 file changed

+2
-1
lines changed

cpp/ql/test/query-tests/Likely Bugs/Underspecified Functions/test.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ void test(int *argv[]) {
3030

3131
not_yet_declared1(1); // BAD (GOOD for everything except for cpp/implicit-function-declaration)
3232
not_yet_declared2(1); // BAD (GOOD for everything except for cpp/implicit-function-declaration)
33-
not_yet_declared2(ca); // BAD (GOOD for everything except for cpp/mistyped-function-arguments)
33+
not_yet_declared2(ca); // BAD (GOOD for everything except for cpp/mistyped-function-arguments
34+
// and cpp/too-few-arguments. Not detected in the case of cpp/too-few-arguments.)
3435
not_yet_declared2(); // BAD [NOT DETECTED] (GOOD for everything except for cpp/too-few-arguments)
3536

3637
declared_empty_defined_with(); // BAD

0 commit comments

Comments
 (0)