mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
35 lines
384 B
C
35 lines
384 B
C
|
|
void f(int x) {
|
|
int y;
|
|
int z = x + 3;
|
|
int j = y++;
|
|
|
|
switch(x) {
|
|
case 3:
|
|
return;
|
|
case 4:
|
|
break;
|
|
default:
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
|
|
int x = 0;
|
|
|
|
struct myStruct {
|
|
int myInt;
|
|
} *p;
|
|
|
|
struct myStruct *getMyStruct(void) {
|
|
x = 1;
|
|
|
|
return p;
|
|
}
|
|
|
|
void f2(void) {
|
|
int i;
|
|
getMyStruct()->myInt;
|
|
}
|
|
|