C++: Add failing test.

This commit is contained in:
Mathias Vorreiter Pedersen
2023-02-26 23:05:46 +00:00
parent da4a059388
commit f6b9ca3da6

View File

@@ -608,3 +608,10 @@ void test_def_by_ref_followed_by_uncertain_write_pointer(int* p) { // $ ast-def=
*p = 0;
sink(*p); // $ ir MISSING: ast
}
void test_flow_through_void_double_pointer(int *p) // $ ast-def=p
{
intPointerSource(p);
void* q = (void*)&p;
sink(**(int**)q); // $ MISSING: ast,ir
}