mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
C++: Add failing test.
This commit is contained in:
@@ -108,6 +108,8 @@ postWithInFlow
|
||||
| test.cpp:562:5:562:13 | globalInt [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:576:5:576:13 | globalInt [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:589:19:589:19 | x [inner post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:596:3:596:4 | xs [inner post update] | PostUpdateNode should not be the target of local flow. |
|
||||
| test.cpp:596:3:596:7 | access to array [post update] | PostUpdateNode should not be the target of local flow. |
|
||||
viableImplInCallContextTooLarge
|
||||
uniqueParameterNodeAtPosition
|
||||
uniqueParameterNodePosition
|
||||
|
||||
@@ -588,4 +588,11 @@ void test_write_to_param() {
|
||||
int x = 0;
|
||||
write_to_param(&x);
|
||||
sink(x); // $ SPURIOUS: ast
|
||||
}
|
||||
}
|
||||
|
||||
void test_indirect_flow_to_array() {
|
||||
int* p = indirect_source();
|
||||
int* xs[2];
|
||||
xs[0] = p;
|
||||
sink(*xs[0]); // $ MISSING: ir,ast
|
||||
}
|
||||
|
||||
@@ -40,3 +40,5 @@
|
||||
| test.cpp:547:9:547:9 | x | test.cpp:548:25:548:25 | x |
|
||||
| test.cpp:551:9:551:9 | y | test.cpp:552:25:552:25 | y |
|
||||
| test.cpp:551:9:551:9 | y | test.cpp:552:28:552:28 | y |
|
||||
| test.cpp:595:8:595:9 | xs | test.cpp:596:3:596:4 | xs |
|
||||
| test.cpp:595:8:595:9 | xs | test.cpp:597:9:597:10 | xs |
|
||||
|
||||
Reference in New Issue
Block a user