diff --git a/cfg/std.cfg b/cfg/std.cfg index 16bbe802c..86d385acb 100644 --- a/cfg/std.cfg +++ b/cfg/std.cfg @@ -3501,6 +3501,19 @@ + + + + + false + + + + + + + + false diff --git a/test/cfg/std.cpp b/test/cfg/std.cpp index 08fc7c81b..a9b0a51c1 100644 --- a/test/cfg/std.cpp +++ b/test/cfg/std.cpp @@ -2489,6 +2489,17 @@ void uninivar_wcstof(void) (void)std::wcstold(s,endp); } +void uninivar_stod(void) +{ + std::string str; + std::wstring wstr; + size_t* idx; + // cppcheck-suppress uninitvar + (void)std::stod(str,idx); + // cppcheck-suppress uninitvar + (void)std::stod(wstr,idx); +} + void uninivar_mbrtowc(void) { wchar_t* pwc;