malsyned / pfstest

Professional Firmware Services Unit Test Framework
Other
1 stars 0 forks source link

automock: Failure on empty structs #51

Closed malsyned closed 6 years ago

malsyned commented 6 years ago

Test case:

ifndef TIBURON_LOCKER_COMMAND_HANDLER_H

define TIBURON_LOCKER_COMMAND_HANDLER_H

include

typedef enum { TIBURON_LOCKER_COMMAND_HANDLER_STATUS_COMPLETE, } tiburon_locker_command_handler_status_t;

typedef struct {} tiburon_locker_command_handler_t;

tiburon_locker_command_handler_status_t tiburon_locker_command_handler_init( tiburon_locker_command_handler_t this, uint8_t id, uint8_t buf, uint8_t size);

endif / !TIBURON_LOCKER_COMMAND_HANDLER_H /

malsyned commented 6 years ago

I borrowed the empty struct production from pycparserext.