mirror of
https://github.com/github/codeql.git
synced 2026-02-12 13:11:20 +01:00
18 lines
276 B
C++
18 lines
276 B
C++
struct S {
|
|
int x;
|
|
};
|
|
|
|
void use(int);
|
|
|
|
void test() {
|
|
int y = 43; // $ asDefinition=43
|
|
use(y);
|
|
y = 44; // $ asDefinition="... = ..."
|
|
use(y);
|
|
|
|
int x = 43; // $ asDefinition=43
|
|
x = 44; // $ asDefinition="... = ..."
|
|
|
|
S s;
|
|
s.x = 42; // $ asDefinition="... = ..."
|
|
} |