diff --git a/cfg/std.cfg b/cfg/std.cfg index 6e4f5acdf..111752e11 100644 --- a/cfg/std.cfg +++ b/cfg/std.cfg @@ -2711,7 +2711,7 @@ - + false @@ -2724,7 +2724,7 @@ - + false @@ -2734,13 +2734,13 @@ - + - + diff --git a/test/cfg/std.c b/test/cfg/std.c index d5b05c465..f9f35fdbd 100644 --- a/test/cfg/std.c +++ b/test/cfg/std.c @@ -2659,3 +2659,61 @@ void uninitvar_round(void) // cppcheck-suppress uninitvar (void)roundl(ld); } + +void uninivar_scalbn(void) +{ + float f; + int i1; + // cppcheck-suppress uninitvar + (void)scalbnf(f,i1); + + double d; + int i2; + // cppcheck-suppress uninitvar + (void)scalbn(d,i2); + + long double ld; + int i3; + // cppcheck-suppress uninitvar + (void)scalbnl(ld,i3); +} + +void uninivar_scalbln(void) +{ + float f; + long int i1; + // cppcheck-suppress uninitvar + (void)scalblnf(f,i1); + + double d; + long int i2; + // cppcheck-suppress uninitvar + (void)scalbln(d,i2); + + long double ld; + long int i3; + // cppcheck-suppress uninitvar + (void)scalblnl(ld,i3); +} + +void uninitvar_signbit(void) +{ + double d; + // cppcheck-suppress uninitvar + (void)signbit(d); +} +#if 0 +void uninivar_signal(void) +{ + int i; + // cppcheck-suppress uninitvar + signal(i, exit); +} + +void uninivar_raise(void) +{ + int i; + // cppcheck-suppress uninitvar + (void)raise(i); +} +#endif diff --git a/test/cfg/std.cpp b/test/cfg/std.cpp index 28800c001..3b8eea55f 100644 --- a/test/cfg/std.cpp +++ b/test/cfg/std.cpp @@ -1981,3 +1981,62 @@ void uninitvar_round(void) // cppcheck-suppress uninitvar (void)std::roundl(ld); } + +void uninivar_scalbn(void) +{ + float f; + int i1; + // cppcheck-suppress uninitvar + (void)std::scalbnf(f,i1); + + double d; + int i2; + // cppcheck-suppress uninitvar + (void)std::scalbn(d,i2); + + long double ld; + int i3; + // cppcheck-suppress uninitvar + (void)std::scalbnl(ld,i3); +} + +void uninivar_scalbln(void) +{ + float f; + long int i1; + // cppcheck-suppress uninitvar + (void)std::scalblnf(f,i1); + + double d; + long int i2; + // cppcheck-suppress uninitvar + (void)std::scalbln(d,i2); + + long double ld; + long int i3; + // cppcheck-suppress uninitvar + (void)std::scalblnl(ld,i3); +} + +void uninitvar_signbit(void) +{ + double d; + // cppcheck-suppress uninitvar + (void)std::signbit(d); +} + +#if 0 +void uninivar_signal(void) +{ + int i; + // cppcheck-suppress uninitvar + std::signal(i, exit); +} + +void uninivar_raise(void) +{ + int i; + // cppcheck-suppress uninitvar + (void)std::raise(i); +} +#endif