File tree Expand file tree Collapse file tree
cpp/ql/test/library-tests/dataflow/dataflow-tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -128,6 +128,7 @@ postWithInFlow
128128| test.cpp:690:3:690:3 | s [post update] | PostUpdateNode should not be the target of local flow. |
129129| test.cpp:694:4:694:6 | buf [inner post update] | PostUpdateNode should not be the target of local flow. |
130130| test.cpp:704:23:704:25 | buf [inner post update] | PostUpdateNode should not be the target of local flow. |
131+ | test.cpp:715:25:715:25 | c [inner post update] | PostUpdateNode should not be the target of local flow. |
131132viableImplInCallContextTooLarge
132133uniqueParameterNodeAtPosition
133134uniqueParameterNodePosition
Original file line number Diff line number Diff line change @@ -702,4 +702,21 @@ void call_increment_buf(int** buf) { // $ ast-def=buf
702702void test_conflation_regression (int * source) { // $ ast-def=source
703703 int * buf = source;
704704 call_increment_buf (&buf);
705+ }
706+
707+ void write_to_star_star_p (unsigned char **p) // $ ast-def=p ir-def=**p ir-def=*p
708+ {
709+ **p = 0 ;
710+ }
711+
712+ void write_to_star_buf (unsigned char *buf) // $ ast-def=buf
713+ {
714+ unsigned char *c = buf;
715+ write_to_star_star_p (&c);
716+ }
717+
718+ void test (unsigned char *source) // $ ast-def=source
719+ {
720+ write_to_star_buf (source);
721+ sink (*source); // $ SPURIOUS: ir
705722}
You can’t perform that action at this time.
0 commit comments