Closed FrNecas closed 3 years ago
In order to make the feature fully work, some minor refactoring was necessary.
I've tested the feature manually on the following examples and all of them seem to work as expected:
typedef struct data { struct data *next; int content; } Data;
void main() { Data x1 = {0,}; Data x2 = {&x1,}; Data x3 = {&x2,}; Data *curr = &x3; while (curr) { assert(curr->content == 0); curr = curr->next; } }
Thanks for the reviews. Braces fixed and basic test coverage added.
I think you can merge @viktormalik
Indeed, thanks. Merged.
In order to make the feature fully work, some minor refactoring was necessary.
I've tested the feature manually on the following examples and all of them seem to work as expected:
void main() { Data x1 = {0,}; Data x2 = {&x1,}; Data x3 = {&x2,}; Data *curr = &x3; while (curr) { assert(curr->content == 0); curr = curr->next; } }