diff --git a/cfg/std.cfg b/cfg/std.cfg index 667c285ca..9b5e134ef 100644 --- a/cfg/std.cfg +++ b/cfg/std.cfg @@ -155,7 +155,7 @@ - + acosh(arg1) false @@ -167,7 +167,7 @@ - + acosh(arg1) false @@ -179,7 +179,7 @@ - + acosh(arg1) false diff --git a/test/cfg/std.cpp b/test/cfg/std.cpp index 48f1472f7..9b4d5b205 100644 --- a/test/cfg/std.cpp +++ b/test/cfg/std.cpp @@ -43,6 +43,13 @@ int zerodiv_sqrt() return 42 / i; } +int zerodiv_acos() +{ + int i = std::acos(1); + // cppcheck-suppress zerodiv + return 42 / i; +} + int zerodiv_asinh() { int i = std::asinh(0); @@ -50,6 +57,27 @@ int zerodiv_asinh() return 42 / i; } +int zerodiv_acosh() +{ + int i = std::acosh(1); + // cppcheck-suppress zerodiv + return 42 / i; +} + +int zerodiv_sinh() +{ + int i = std::sinh(0); + // cppcheck-suppress zerodiv + return 42 / i; +} + +int zerodiv_tanh() +{ + int i = std::tanh(0); + // cppcheck-suppress zerodiv + return 42 / i; +} + int zerodiv_sin() { int i = std::sin(0)+std::sin(M_PI)+std::sin(2*M_PI);