std.cfg: Added tests for 'atanh'

This commit is contained in:
orbitcowboy 2020-06-11 15:13:19 +02:00
parent 0fe0e56986
commit e767bb8ff3
1 changed files with 36 additions and 0 deletions

View File

@ -659,6 +659,42 @@ void invalidFunctionArg_acosh(void)
(void)acoshl(ld); (void)acoshl(ld);
} }
void invalidFunctionArg_atanh(void)
{
float f = 1.00001f;
// cppcheck-suppress invalidFunctionArg
(void)atanhf(f);
f = 1.0f;
(void)atanhf(f);
f = -1.0f;
(void)atanhf(f);
f = -1.00001f;
// cppcheck-suppress invalidFunctionArg
(void)atanhf(f);
double d = 1.00001;
// cppcheck-suppress invalidFunctionArg
(void)atanh(d);
d = 1.0;
(void)atanh(d);
d = -1.0;
(void)atanh(d);
d = -1.00001;
// cppcheck-suppress invalidFunctionArg
(void)atanh(d);
long double ld = 1.00001L;
// cppcheck-suppress invalidFunctionArg
(void)atanhl(ld);
ld = 1.0L;
(void)atanhl(ld);
ld = -1.0L;
(void)atanhl(ld);
ld = -1.00001L;
// cppcheck-suppress invalidFunctionArg
(void)atanhl(ld);
}
void uninitvar_asctime(void) void uninitvar_asctime(void)
{ {
const struct tm *tm; const struct tm *tm;