On Wed, 13 May 2026 at 21:01, Jonathan Wakely wrote:
>
> This function was defined but not being called at runtime.
I keep wondering about defining test functions as static, so that we
would get -Wunused-function warnings when I make this mistake.
static void
test_format()
...
>
> libstdc++-v3/ChangeLog:
>
> * testsuite/std/time/clock/local/io.cc: Call test_format.
> ---
>
> Tested x86_64-linux. Pushed to trunk.
>
> libstdc++-v3/testsuite/std/time/clock/local/io.cc | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/libstdc++-v3/testsuite/std/time/clock/local/io.cc
> b/libstdc++-v3/testsuite/std/time/clock/local/io.cc
> index 6efd81a87c2a..9774f59fc38f 100644
> --- a/libstdc++-v3/testsuite/std/time/clock/local/io.cc
> +++ b/libstdc++-v3/testsuite/std/time/clock/local/io.cc
> @@ -136,5 +136,6 @@ static_assert( !
> ostream_insertable<std::chrono::local_time<D>> );
> int main()
> {
> test_ostream();
> + test_format();
> test_parse();
> }
> --
> 2.54.0
>