mirror of
https://github.com/github/codeql.git
synced 2026-05-04 21:25:44 +02:00
C++: Accept test changes.
This commit is contained in:
@@ -533,12 +533,12 @@ void test_set_through_const_pointer(int *e)
|
||||
}
|
||||
|
||||
void sink_then_source_1(int* p) {
|
||||
sink(*p); // $ SPURIOUS: ir=537:10 ir=547:9
|
||||
sink(*p); // $ ir // Flow from the unitialized x to the dereference.
|
||||
*p = source();
|
||||
}
|
||||
|
||||
void sink_then_source_2(int* p, int y) {
|
||||
sink(y); // $ SPURIOUS: ast ir=542:10 ir=551:9
|
||||
sink(y); // $ SPURIOUS: ast ir
|
||||
*p = source();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user