mirror of
https://github.com/github/codeql.git
synced 2026-05-19 05:37:10 +02:00
15 lines
287 B
C++
15 lines
287 B
C++
bool checkArgument(int* x);
|
|
|
|
void sink(int);
|
|
|
|
void testCheckArgument(int* p) {
|
|
if (checkArgument(p)) {
|
|
sink(*p); // $ indirect_barrier=int barrier=int*
|
|
}
|
|
}
|
|
|
|
void testCheckArgument(int p) {
|
|
if (checkArgument(&p)) {
|
|
sink(p); // $ barrier=glval<int> indirect_barrier=int
|
|
}
|
|
} |