mirror of
https://github.com/github/codeql.git
synced 2026-05-04 21:25:44 +02:00
Merge branch 'main' into mathiasvp/replace-ast-with-ir-use-usedataflow
This commit is contained in:
@@ -530,4 +530,14 @@ void test_set_through_const_pointer(int *e)
|
||||
{
|
||||
set_through_const_pointer(source(), &e);
|
||||
sink(*e); // $ ir MISSING: ast
|
||||
}
|
||||
}
|
||||
|
||||
void sink_then_source(int* p) {
|
||||
sink(*p);
|
||||
*p = source(); // $ SPURIOUS: ir=537:10 ir=541:9
|
||||
}
|
||||
|
||||
void test_sink_then_source() {
|
||||
int x;
|
||||
sink_then_source(&x);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user