mirror of
https://github.com/github/codeql.git
synced 2025-12-23 20:26:32 +01:00
C++: Disambiguate a test annotation.
This commit is contained in:
@@ -594,7 +594,7 @@ void test_indirect_flow_to_array() {
|
|||||||
int* p = indirect_source();
|
int* p = indirect_source();
|
||||||
int* xs[2];
|
int* xs[2];
|
||||||
xs[0] = p;
|
xs[0] = p;
|
||||||
sink(*xs[0]); // $ ir MISSING: ast
|
sink(*xs[0]); // $ ir MISSING: ast // the IR source is the indirection of `indirect_source()`.
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_def_by_ref_followed_by_uncertain_write_array(int* p) { // $ ast-def=p ir-def=*p
|
void test_def_by_ref_followed_by_uncertain_write_array(int* p) { // $ ast-def=p ir-def=*p
|
||||||
|
|||||||
Reference in New Issue
Block a user