File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
cpp/ql/test/library-tests/dataflow/dataflow-tests Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -128,6 +128,7 @@ postWithInFlow
128
128
| test.cpp:690:3:690:3 | s [post update] | PostUpdateNode should not be the target of local flow. |
129
129
| test.cpp:694:4:694:6 | buf [inner post update] | PostUpdateNode should not be the target of local flow. |
130
130
| 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. |
131
132
viableImplInCallContextTooLarge
132
133
uniqueParameterNodeAtPosition
133
134
uniqueParameterNodePosition
Original file line number Diff line number Diff line change @@ -702,4 +702,21 @@ void call_increment_buf(int** buf) { // $ ast-def=buf
702
702
void test_conflation_regression (int * source) { // $ ast-def=source
703
703
int * buf = source;
704
704
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
705
722
}
You can’t perform that action at this time.
0 commit comments