You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
It seems that some C++ keywords cannot be used as parameter names in C functions, because generated tests cannot be run. For instance and, and_eq or bitand and probably others.
To Reproduce
Generate tests for following function and try to run them:
intparam_name_and(intand) {
returnand*and;
}
Expected behavior
Tests are generated and executed.
Actual behavior
Tests are generated but execution fails. Following error could be found in the logs:
In file included from /home/utbot/remote/SampleDocker2/tests/makefiles/src/../../../tests/src/params_dot_c_test.cpp:5:
/home/utbot/remote/SampleDocker2/tests/makefiles/src/../../../tests/src/params_dot_c_test.h:65:39: error: expected identifier
return param_name_and_src_params_c(and);
Additional context
To verify other keywords please use attached file, rename extension to c and probably comment out param_name_wchar_t function as it seems separate problem. Then generate and run tests.
Description
It seems that some C++ keywords cannot be used as parameter names in C functions, because generated tests cannot be run. For instance
and
,and_eq
orbitand
and probably others.To Reproduce
Generate tests for following function and try to run them:
Expected behavior
Tests are generated and executed.
Actual behavior
Tests are generated but execution fails. Following error could be found in the logs:
params_dot_c_test.h
Additional context
To verify other keywords please use attached file, rename extension to
c
and probably comment outparam_name_wchar_t
function as it seems separate problem. Then generate and run tests.params.txt
The text was updated successfully, but these errors were encountered: