From fc4b9d320d436dd88d638cc2efe223ee2e3cd87a Mon Sep 17 00:00:00 2001 From: Martin Ettl Date: Fri, 18 Sep 2015 16:25:05 +0200 Subject: [PATCH] test/cfg: Improved testing of std.cfg about std::stod(). --- cfg/std.cfg | 13 +++++++++++++ test/cfg/std.cpp | 11 +++++++++++ 2 files changed, 24 insertions(+) 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;