std.cfg: Improved zerodiv test of math functions and demonstrate that constants from <cmath> can be applied as well.

This commit is contained in:
orbitcowboy 2022-07-09 10:09:43 +02:00
parent 6b72274c67
commit 2f41a8dbdd
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ int zerodiv_sqrt()
int zerodiv_sin()
{
int i = std::sin(0);
int i = std::sin(0)+std::sin(M_PI)+std::sin(2*M_PI);
// cppcheck-suppress zerodiv
return 42 / i;
}