From c2e132b1a3b3d1bb5a4e547eda53b98898282176 Mon Sep 17 00:00:00 2001 From: orbitcowboy Date: Sat, 9 Jul 2022 16:14:58 +0200 Subject: [PATCH] std.cfg: Improved configuration of asinh(). --- cfg/std.cfg | 6 +++--- test/cfg/std.cpp | 7 +++++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/cfg/std.cfg b/cfg/std.cfg index c89e82de1..667c285ca 100644 --- a/cfg/std.cfg +++ b/cfg/std.cfg @@ -417,7 +417,7 @@ - + asinh(arg1) false @@ -428,7 +428,7 @@ - + asinh(arg1) false @@ -439,7 +439,7 @@ - + asinh(arg1) false diff --git a/test/cfg/std.cpp b/test/cfg/std.cpp index 46a2d1bcb..48f1472f7 100644 --- a/test/cfg/std.cpp +++ b/test/cfg/std.cpp @@ -43,6 +43,13 @@ int zerodiv_sqrt() return 42 / i; } +int zerodiv_asinh() +{ + int i = std::asinh(0); + // cppcheck-suppress zerodiv + return 42 / i; +} + int zerodiv_sin() { int i = std::sin(0)+std::sin(M_PI)+std::sin(2*M_PI);