diff --git a/test/enforce-compiletime-test.cc b/test/enforce-compiletime-test.cc index 6ae06b96..4b2e62b8 100644 --- a/test/enforce-compiletime-test.cc +++ b/test/enforce-compiletime-test.cc @@ -27,9 +27,11 @@ // Exercise the API to verify that everything we expect to can compile. void TestFormatApi() { - (void)fmt::format(FMT_STRING("noop")); (void)fmt::format(FMT_STRING("{}"), 42); (void)fmt::format(FMT_STRING(L"{}"), 42); +#if !FMT_GCC_VERSION + (void)fmt::format(FMT_STRING("noop")); +#endif (void)fmt::to_string(42); (void)fmt::to_wstring(42);