UTBotCpp icon indicating copy to clipboard operation
UTBotCpp copied to clipboard

Incorrect pointer to function parameter in wrappers

Open ladisgin opened this issue 2 years ago • 0 comments

To Reproduce Steps to reproduce the behavior:

  1. Open the JQ project in IDE
  2. Use plugin to generate tests
  3. Run the generated test

Expected behavior Tests are supposed to be runnable.

Actual behavior Compile error.

Additional context

/home/utbot/jq/tests/makefiles/src/../../../tests/wrapper/modules/oniguruma/src/st_wrapper.c:61:76: error: expected ')'
int onig_st_foreach_modules_oniguruma_src_st_c(st_table * table, int (*)() func, st_data_t arg) {
                                                                           ^
/home/utbot/jq/tests/makefiles/src/../../../tests/wrapper/modules/oniguruma/src/st_wrapper.c:61:47: note: to match this '('
int onig_st_foreach_modules_oniguruma_src_st_c(st_table * table, int (*)() func, st_data_t arg) {
                                              ^
/home/utbot/jq/tests/makefiles/src/../../../tests/wrapper/modules/oniguruma/src/st_wrapper.c:61:72: error: parameter name omitted
int onig_st_foreach_modules_oniguruma_src_st_c(st_table * table, int (*)() func, st_data_t arg) {
                                                                       ^
/home/utbot/jq/tests/makefiles/src/../../../tests/wrapper/modules/oniguruma/src/st_wrapper.c:62:31: error: use of undeclared identifier 'func'
return onig_st_foreach(table, func, arg);
                              ^
/home/utbot/jq/tests/makefiles/src/../../../tests/wrapper/modules/oniguruma/src/st_wrapper.c:62:37: error: use of undeclared identifier 'arg'
return onig_st_foreach(table, func, arg);
                                    ^
4 errors generated.

ladisgin avatar Feb 20 '23 14:02 ladisgin