Skip to content

Commit 46f7275

Browse files
committed
#8113: Added a regression test.
1 parent d82df7c commit 46f7275

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

test/cfg/std.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@
3131
#include <iterator>
3232
#include <vector>
3333

34+
double invalidFunctionArg_log10(double d = 0.0) {
35+
// cppcheck-suppress invalidFunctionArg
36+
return log10(d);
37+
}
38+
3439
void uninitvar_std_next(const std::vector<int> &v, int count)
3540
{
3641
// No warning shall be shown:

0 commit comments

Comments
 (0)