C++: Fix more inconsistencies.

This commit is contained in:
Mathias Vorreiter Pedersen
2024-07-12 17:15:39 +01:00
parent 45ba0c3319
commit 1c8e0c453c
10 changed files with 142 additions and 14 deletions

View File

@@ -565,4 +565,19 @@ void test45() {
*rP = NULL;
use(r); // GOOD
}
}
void test46()
{
LinkedList *r, **rP = &r;
while (getBool())
{
LinkedList *s = nullptr;
*rP = s;
rP = &s->next;
}
*rP = nullptr;
use(r);
}