std.cfg: Improved zerodiv test of math functions and demonstrate that constants from <cmath> can be applied as well.
This commit is contained in:
parent
6b72274c67
commit
2f41a8dbdd
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue