Skip to content

Commit 8eb98c0

Browse files
committed
Fix testcases incompatiblefunctiondeclaration etc to match cases needed
1 parent 4abe23f commit 8eb98c0

File tree

5 files changed

+6
-25
lines changed

5 files changed

+6
-25
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
| test1.c:4:12:4:12 | declaration of f | The object is not compatible with a re-declaration $@. | test.c:4:6:4:6 | definition of f | f |
2-
| test.c:4:6:4:6 | definition of f | The object is not compatible with a re-declaration $@. | test1.c:4:12:4:12 | declaration of f | f |
3-
| test.c:8:6:8:7 | declaration of f1 | The object is not compatible with a re-declaration $@. | test1.c:5:13:5:14 | declaration of f1 | f1 |
4-
| test.c:9:6:9:7 | definition of f2 | The object is not compatible with a re-declaration $@. | test1.c:6:6:6:7 | definition of f2 | f2 |
1+
| test1.c:1:12:1:12 | declaration of f | The object is not compatible with a re-declaration $@. | test.c:1:6:1:6 | definition of f | f |
2+
| test.c:1:6:1:6 | definition of f | The object is not compatible with a re-declaration $@. | test1.c:1:12:1:12 | declaration of f | f |
3+
| test.c:5:6:5:7 | declaration of f1 | The object is not compatible with a re-declaration $@. | test1.c:2:13:2:14 | declaration of f1 | f1 |
4+
| test.c:6:6:6:7 | definition of f2 | The object is not compatible with a re-declaration $@. | test1.c:3:6:3:7 | definition of f2 | f2 |

c/common/test/rules/incompatiblefunctiondeclaration/test.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
short i; // NON_COMPLIANT
2-
int a[] = {1, 2, 3, 4}; // NON_COMPLIANT
3-
41
long f(int a) { // NON_COMPLIANT
52
return a * 2;
63
}

c/common/test/rules/incompatiblefunctiondeclaration/test1.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
extern int *a; // NON_COMPLIANT
2-
extern int i; // NON_COMPLIANT
3-
41
extern int f(int a); // NON_COMPLIANT
52
extern void f1(int a); // NON_COMPLIANT
63
void f2(int a, ...) {} // NON_COMPLIANT
Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,2 @@
11
short i; // NON_COMPLIANT
2-
int a[] = {1, 2, 3, 4}; // NON_COMPLIANT
3-
4-
long f(int a) { // NON_COMPLIANT
5-
return a * 2;
6-
}
7-
8-
void f1(long a); // NON_COMPLIANT
9-
void f2() {} // NON_COMPLIANT
10-
int f3(); // COMPLIANT
2+
int a[] = {1, 2, 3, 4}; // NON_COMPLIANT
Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,2 @@
11
extern int *a; // NON_COMPLIANT
2-
extern int i; // NON_COMPLIANT
3-
4-
extern int f(int a); // NON_COMPLIANT
5-
extern void f1(int a); // NON_COMPLIANT
6-
void f2(int a, ...) {} // NON_COMPLIANT
7-
int f3(); // COMPLIANT
2+
extern int i; // NON_COMPLIANT

0 commit comments

Comments
 (0)