mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
29 lines
278 B
C
29 lines
278 B
C
|
|
int global;
|
|
|
|
typedef struct
|
|
{
|
|
int *x, y;
|
|
} s;
|
|
|
|
void access(int param)
|
|
{
|
|
s my_s;
|
|
|
|
global = 1;
|
|
|
|
my_s.x = &(my_s.y);
|
|
|
|
access(param);
|
|
}
|
|
|
|
typedef enum {
|
|
MYENUMCONST = 1,
|
|
} myEnum;
|
|
|
|
void more_accesses()
|
|
{
|
|
void (*fn_ptr)() = &more_accesses;
|
|
myEnum me = MYENUMCONST;
|
|
}
|