Fix va_end() definition: must be an expression of type void
commitbe7c870718a46d18186cfebc1fd20ac6b89583f3
authorVincent Lefevre <vincent@vinc17.net>
Thu, 14 Mar 2019 14:39:52 +0000 (14 15:39 +0100)
committerVincent Lefevre <vincent@vinc17.net>
Thu, 14 Mar 2019 14:39:52 +0000 (14 15:39 +0100)
tree2db409112559f5a4cb3c8907254bd595a1a6bdd7
parent920f773a8171d4c01033a50ae0d3dff459b03603
Fix va_end() definition: must be an expression of type void

Also added a test yielding a failure with the previous definition,
i.e. when using: (va_end(ap));

The test also checks potentially incorrect va_start() definition.
include/stdarg.h
tests/tcctest.c