std.cfg: Added tests for 'acosh'

This commit is contained in:
orbitcowboy 2020-06-11 15:07:35 +02:00
parent 05b98712e8
commit 0fe0e56986
1 changed files with 21 additions and 0 deletions

View File

@ -638,6 +638,27 @@ void uninitvar_acosh(void)
(void)acoshl(ld);
}
void invalidFunctionArg_acosh(void)
{
float f = .999f;
// cppcheck-suppress invalidFunctionArg
(void)acoshf(f);
f = 1.0f;
(void)acoshf(f);
double d = .999;
// cppcheck-suppress invalidFunctionArg
(void)acosh(d);
d = 1.0;
(void)acosh(d);
long double ld = .999L;
// cppcheck-suppress invalidFunctionArg
(void)acoshl(ld);
ld = 1.0;
(void)acoshl(ld);
}
void uninitvar_asctime(void)
{
const struct tm *tm;