From b33326bf51b10724dfa1bb6ad2f61bb2f8e48ce4 Mon Sep 17 00:00:00 2001 From: orbitcowboy Date: Fri, 26 Jun 2020 20:45:18 +0200 Subject: [PATCH] windows.cfg: Added a regression test for GetSystemInfo that ensure no uninitvar-FP is shown. --- test/cfg/windows.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/cfg/windows.cpp b/test/cfg/windows.cpp index f8afb0fb8..1e7990d37 100644 --- a/test/cfg/windows.cpp +++ b/test/cfg/windows.cpp @@ -13,6 +13,15 @@ #include +SYSTEM_INFO uninitvar_GetSystemInfo(char * envstr) +{ + // No warning is expected + SYSTEM_INFO SystemInfo; + GetSystemInfo(&SystemInfo); + return SystemInfo; +} + + void uninitvar__putenv(char * envstr) { // No warning is expected