Skip to content

Commit f6b9ca3

Browse files
committed
C++: Add failing test.
1 parent da4a059 commit f6b9ca3

File tree

1 file changed

+7
-0
lines changed
  • cpp/ql/test/library-tests/dataflow/dataflow-tests

1 file changed

+7
-0
lines changed

cpp/ql/test/library-tests/dataflow/dataflow-tests/test.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,3 +608,10 @@ void test_def_by_ref_followed_by_uncertain_write_pointer(int* p) { // $ ast-def=
608608
*p = 0;
609609
sink(*p); // $ ir MISSING: ast
610610
}
611+
612+
void test_flow_through_void_double_pointer(int *p) // $ ast-def=p
613+
{
614+
intPointerSource(p);
615+
void* q = (void*)&p;
616+
sink(**(int**)q); // $ MISSING: ast,ir
617+
}

0 commit comments

Comments
 (0)