mirror of
https://github.com/github/codeql.git
synced 2026-04-18 13:34:02 +02:00
Merge pull request #11975 from MathiasVP/another-dataflow-loop
C++: Add another looping dataflow test
This commit is contained in:
@@ -94,7 +94,10 @@ postWithInFlow
|
||||
| test.cpp:505:35:505:35 | x [inner post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:511:5:511:6 | * ... [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:511:6:511:6 | p [inner post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:516:23:516:23 | x [inner post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:516:5:516:6 | * ... [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:516:6:516:6 | p [inner post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:522:25:522:25 | x [inner post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:526:25:526:25 | y [inner post update] | PostUpdateNode should not be the target of local flow. |
|
||||
viableImplInCallContextTooLarge
|
||||
uniqueParameterNodeAtPosition
|
||||
uniqueParameterNodePosition
|
||||
|
||||
@@ -594,9 +594,15 @@ postWithInFlow
|
||||
| test.cpp:511:5:511:6 | * ... [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:511:6:511:6 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:511:6:511:6 | p [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:516:22:516:23 | & ... [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:516:22:516:23 | & ... [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:516:23:516:23 | x [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:516:5:516:6 | * ... [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:516:6:516:6 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:516:6:516:6 | p [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:522:24:522:25 | & ... [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:522:24:522:25 | & ... [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:522:25:522:25 | x [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:526:24:526:25 | & ... [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:526:24:526:25 | & ... [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:526:25:526:25 | y [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| true_upon_entry.cpp:9:7:9:7 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| true_upon_entry.cpp:10:12:10:12 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| true_upon_entry.cpp:10:27:10:27 | VariableAddress [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
|
||||
@@ -506,12 +506,23 @@ void viaOutparamMissingReturn() {
|
||||
sink(x); // $ ast,ir
|
||||
}
|
||||
|
||||
void sink_then_source(int* p) {
|
||||
sink(*p);
|
||||
*p = source(); // clean
|
||||
void sink_then_source_1(int* p) {
|
||||
sink(*p); // clean
|
||||
*p = source();
|
||||
}
|
||||
|
||||
void sink_then_source_2(int* p, int y) {
|
||||
sink(y); // $ SPURIOUS: ast
|
||||
*p = source();
|
||||
}
|
||||
|
||||
void test_sink_then_source() {
|
||||
{
|
||||
int x;
|
||||
sink_then_source(&x);
|
||||
sink_then_source_1(&x);
|
||||
}
|
||||
{
|
||||
int y;
|
||||
sink_then_source_2(&y, y);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,4 +34,6 @@
|
||||
| test.cpp:441:7:441:11 | local | test.cpp:442:18:442:22 | local |
|
||||
| test.cpp:441:7:441:11 | local | test.cpp:443:8:443:12 | local |
|
||||
| test.cpp:441:7:441:11 | local | test.cpp:444:9:444:13 | local |
|
||||
| test.cpp:515:9:515:9 | x | test.cpp:516:23:516:23 | x |
|
||||
| test.cpp:521:9:521:9 | x | test.cpp:522:25:522:25 | x |
|
||||
| test.cpp:525:9:525:9 | y | test.cpp:526:25:526:25 | y |
|
||||
| test.cpp:525:9:525:9 | y | test.cpp:526:28:526:28 | y |
|
||||
|
||||
Reference in New Issue
Block a user