File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
cpp/ql/test/library-tests/dataflow/dataflow-tests Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -788,4 +788,12 @@ void test_sometimes_calls_sink_switch() {
788788 sometimes_calls_sink_switch (source (), 1 );
789789 sometimes_calls_sink_switch (0 , 0 );
790790 sometimes_calls_sink_switch (source (), 0 );
791+ }
792+
793+ void intPointerSource (int *ref_source, const int * another_arg);
794+
795+ void test () {
796+ MyStruct a;
797+ intPointerSource (a.content , a.content );
798+ indirect_sink (a.content ); // $ ast MISSING: ir
791799}
Original file line number Diff line number Diff line change 4646| test.cpp:595:8:595:9 | xs | test.cpp:597:9:597:10 | xs |
4747| test.cpp:733:7:733:7 | x | test.cpp:734:41:734:41 | x |
4848| test.cpp:733:7:733:7 | x | test.cpp:735:8:735:8 | x |
49+ | test.cpp:796:12:796:12 | a | test.cpp:797:20:797:20 | a |
50+ | test.cpp:796:12:796:12 | a | test.cpp:797:31:797:31 | a |
51+ | test.cpp:796:12:796:12 | a | test.cpp:798:17:798:17 | a |
You can’t perform that action at this time.
0 commit comments