std.cfg: Added more test functions.

This commit is contained in:
Martin Ettl 2015-08-16 01:29:34 +02:00
parent 716b4d6e18
commit a8af7142a1
1 changed files with 24 additions and 1 deletions

View File

@ -12,6 +12,7 @@
#include <stdlib.h>
#include <tgmath.h> // frexp
#include <wchar.h>
#include <fenv.h>
void bufferAccessOutOfBounds(void)
{
@ -588,7 +589,7 @@ void uninitvar_tan(void)
void uninitvar_ctan(void)
{
float complex fd;
// cppcheck-suppress uninitvars
// cppcheck-suppress uninitvar
(void)ctanf(fd);
double complex dc;
@ -615,6 +616,28 @@ void uninitvar_tanh(void)
(void)tanhl(ld);
}
void uninitvar_ctanh(void)
{
float complex fd;
// cppcheck-suppress uninitvar
(void)ctanhf(fd);
double complex dc;
// cppcheck-suppress uninitvar
(void)ctanh(dc);
long double complex ldc;
// cppcheck-suppress uninitvar
(void)ctanhl(ldc);
}
void uninitvar_feclearexcept(void)
{
int i;
// cppcheck-suppress uninitvar
feclearexcept(i);
}
void ignoreretrn(void)
{
char szNumbers[] = "2001 60c0c0 -1101110100110100100000 0x6fffff";