std.cfg: Improved configuration of asinh().
This commit is contained in:
parent
2f41a8dbdd
commit
c2e132b1a3
|
@ -417,7 +417,7 @@
|
|||
<function name="asinh,std::asinh">
|
||||
<use-retval/>
|
||||
<pure/>
|
||||
<returnValue type="double"/>
|
||||
<returnValue type="double">asinh(arg1)</returnValue>
|
||||
<noreturn>false</noreturn>
|
||||
<leak-ignore/>
|
||||
<arg nr="1" direction="in">
|
||||
|
@ -428,7 +428,7 @@
|
|||
<function name="asinhf,std::asinhf">
|
||||
<use-retval/>
|
||||
<pure/>
|
||||
<returnValue type="float"/>
|
||||
<returnValue type="float">asinh(arg1)</returnValue>
|
||||
<noreturn>false</noreturn>
|
||||
<leak-ignore/>
|
||||
<arg nr="1" direction="in">
|
||||
|
@ -439,7 +439,7 @@
|
|||
<function name="asinhl,std::asinhl">
|
||||
<use-retval/>
|
||||
<pure/>
|
||||
<returnValue type="long double"/>
|
||||
<returnValue type="long double">asinh(arg1)</returnValue>
|
||||
<noreturn>false</noreturn>
|
||||
<leak-ignore/>
|
||||
<arg nr="1" direction="in">
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue