Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 04ef4d1

Browse files
committed
C++: Remove unnecessary testcase
1 parent 1bc3829 commit 04ef4d1

3 files changed

Lines changed: 0 additions & 7 deletions

File tree

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,3 @@
1818
| test.c:58:3:58:24 | call to defined_with_long_long | Calling $@: argument $@ of type $@ is incompatible with parameter $@. | test.c:103:11:103:32 | defined_with_long_long | defined_with_long_long | test.c:58:26:58:26 | 3 | 3 | file://:0:0:0:0 | int | int | test.c:103:44:103:45 | ll | long long ll |
1919
| test.c:60:3:60:21 | call to defined_with_double | Calling $@: argument $@ of type $@ is incompatible with parameter $@. | test.c:99:8:99:26 | defined_with_double | defined_with_double | test.c:60:23:60:25 | 2 | 2 | file://:0:0:0:0 | long long | long long | test.c:99:35:99:35 | d | double d |
2020
| test.c:61:3:61:24 | call to defined_with_long_long | Calling $@: argument $@ of type $@ is incompatible with parameter $@. | test.c:103:11:103:32 | defined_with_long_long | defined_with_long_long | test.c:61:26:61:31 | 3500000000000000.0 | 3500000000000000.0 | file://:0:0:0:0 | double | double | test.c:103:44:103:45 | ll | long long ll |
21-
| test.c:137:3:137:27 | call to implicit_declaration_good | Calling $@: argument $@ of type $@ is incompatible with parameter $@. | test2.c:8:6:8:30 | implicit_declaration_good | implicit_declaration_good | test.c:137:35:137:38 | 2.0 | 2.0 | file://:0:0:0:0 | float | float | test2.c:8:52:8:52 | f | float f |

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,5 @@ void test_implicit_function_declaration(int x, double d) {
134134

135135
implicit_declaration(1, 2); // GOOD (no longer an implicit declaration)
136136

137-
implicit_declaration_good(1, x, 2.0f); // BAD
138-
139137
y = extern_definition(3.0f, &d); // GOOD
140138
}

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,4 @@ void implicit_declaration(int x) {}
33
int implicit_declaration_k_and_r(x) int x;
44
{
55
return x;
6-
}
7-
8-
void implicit_declaration_good(int x, int y, float f)
9-
{
106
}

0 commit comments

Comments
 (0)