mirror of
https://github.com/github/codeql.git
synced 2026-05-01 19:55:15 +02:00
C++: Revert benign change of return type from 'unsigned int' to 'int' in testcase, and add 'GOOD' annotation to the testcase
This commit is contained in:
@@ -2,8 +2,8 @@ typedef struct {
|
||||
int x : 24;
|
||||
} my_struct;
|
||||
|
||||
unsigned int getX1(my_struct m) {
|
||||
return m.x;
|
||||
int getX1(my_struct m) {
|
||||
return m.x; // GOOD
|
||||
}
|
||||
|
||||
short getX2(my_struct m) {
|
||||
|
||||
Reference in New Issue
Block a user