C++: Accept test changes.

This commit is contained in:
Mathias Vorreiter Pedersen
2022-12-19 18:35:25 +00:00
parent a83879fa42
commit cc0371648b
6 changed files with 31 additions and 1 deletions

View File

@@ -96,6 +96,9 @@ postWithInFlow
| test.cpp:519:3:519:15 | access to array [post update] | PostUpdateNode should not be the target of local flow. |
| test.cpp:520:3:520:12 | stackArray [inner post update] | PostUpdateNode should not be the target of local flow. |
| test.cpp:520:3:520:15 | access to array [post update] | PostUpdateNode should not be the target of local flow. |
| test.cpp:526:3:526:4 | * ... [post update] | PostUpdateNode should not be the target of local flow. |
| test.cpp:526:4:526:4 | e [inner post update] | PostUpdateNode should not be the target of local flow. |
| test.cpp:531:40:531:40 | e [inner post update] | PostUpdateNode should not be the target of local flow. |
viableImplInCallContextTooLarge
uniqueParameterNodeAtPosition
uniqueParameterNodePosition

View File

@@ -519,4 +519,15 @@ void uncertain_definition() {
stackArray[0] = source();
stackArray[1] = clean;
sink(stackArray[0]); // $ ast=519:19 ir SPURIOUS: ast=517:7
}
void set_through_const_pointer(int x, const int **e)
{
*e = &x;
}
void test_set_through_const_pointer(int *e)
{
set_through_const_pointer(source(), &e);
sink(*e); // $ ir MISSING: ast
}