From 2f41a8dbdd73b3688bd4162c95b9099659de41d6 Mon Sep 17 00:00:00 2001 From: orbitcowboy Date: Sat, 9 Jul 2022 10:09:43 +0200 Subject: [PATCH] std.cfg: Improved zerodiv test of math functions and demonstrate that constants from can be applied as well. --- test/cfg/std.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/cfg/std.cpp b/test/cfg/std.cpp index 422dd5cac..46a2d1bcb 100644 --- a/test/cfg/std.cpp +++ b/test/cfg/std.cpp @@ -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; }