From: Iain Sandoe Date: Sat, 24 Dec 2022 11:04:41 +0000 (+0000) Subject: libstdc++, testsuite: Correct an init. X-Git-Tag: basepoints/gcc-14~2323 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c3a036be5f4dd68e0e4d8fb3a152c06538f5872;p=thirdparty%2Fgcc.git libstdc++, testsuite: Correct an init. in leap_seconds.cc, we are testing to see if the function that overrides the default zoneinfo directory has been called. That is implemented with a static boolean that needs to be initialized to false. Signed-off-by: Iain Sandoe libstdc++-v3/ChangeLog: * testsuite/std/time/tzdb/leap_seconds.cc: Initialize the override_used test var to false. --- diff --git a/libstdc++-v3/testsuite/std/time/tzdb/leap_seconds.cc b/libstdc++-v3/testsuite/std/time/tzdb/leap_seconds.cc index 82303e8bdf03..2b289436583a 100644 --- a/libstdc++-v3/testsuite/std/time/tzdb/leap_seconds.cc +++ b/libstdc++-v3/testsuite/std/time/tzdb/leap_seconds.cc @@ -7,7 +7,7 @@ #include #include -static bool override_used = true; +static bool override_used = false; namespace __gnu_cxx {