C++: Fix ODR violations in dataflow tests

This commit is contained in:
Jeroen Ketema
2024-10-08 20:34:20 +02:00
parent f1e22687ab
commit c90d0faaf6
3 changed files with 14 additions and 14 deletions

View File

@@ -78,7 +78,7 @@ int* deref(int** p) { // $ ast-def=p ir-def=*p ir-def=**p
return q;
}
void test1() {
void flowout_test1() {
int x = 0;
int* p = &x;
deref(&p)[0] = source();
@@ -95,7 +95,7 @@ void addtaint2(int** p) { // $ ast-def=p ir-def=*p ir-def=**p
addtaint1(q);
}
void test2() {
void flowout_test2() {
int x = 0;
int* p = &x;
addtaint2(&p);