We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Description If project contains enum with name given by typedef:
typedef enum { EVEN, ODD } Parity;
And structs, something like:
struct WrapperStruct { Parity p; }; struct PointerStruct { struct WrapperStruct* wrapperStruct; }; int parityToInt(struct PointerStruct* s) { struct WrapperStruct* w = s->wrapperStruct; Parity parity = w->p; if (parity == EVEN) { return 0; } return 1; }
Then generated test can contain lazy instantiated variable:
struct WrapperStruct utbotInnerVar1 = { .p = (enum Parity)(507720632) };
As a result the test cannot be run.
To Reproduce Steps to reproduce the behavior:
Expected behavior Test is supposed to be generated and executed.
Actual behavior Test cannot be executed.
Visual proofs (screenshots, logs)
error: typedef 'Parity' cannot be referenced with a enum specifier .p = (enum Parity)(507720632)
The text was updated successfully, but these errors were encountered:
Resolve the issue with unnecessary enum specifier #600 (#602)
83a81ec
* Resolve issue with unnecessary enum specifier
Successfully merging a pull request may close this issue.
Description
If project contains enum with name given by typedef:
And structs, something like:
Then generated test can contain lazy instantiated variable:
As a result the test cannot be run.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Test is supposed to be generated and executed.
Actual behavior
Test cannot be executed.
Visual proofs (screenshots, logs)
The text was updated successfully, but these errors were encountered: