diff --git a/test/format-test.cc b/test/format-test.cc index 173d2ccc..ffdf72b7 100644 --- a/test/format-test.cc +++ b/test/format-test.cc @@ -46,20 +46,34 @@ using testing::StrictMock; namespace { #if !FMT_GCC_VERSION || FMT_GCC_VERSION >= 408 -template +template bool check_enabled_formatter() { - static_assert(std::is_default_constructible>::value, ""); + static_assert( + std::is_default_constructible>::value, ""); return true; } -template +template void check_enabled_formatters() { - auto dummy = {check_enabled_formatter()...}; + auto dummy = {check_enabled_formatter()...}; (void)dummy; } TEST(FormatterTest, TestFormattersEnabled) { - check_enabled_formatters(); + check_enabled_formatters(); + check_enabled_formatters(); +#if FMT_USE_NULLPTR + check_enabled_formatters(); + check_enabled_formatters(); +#endif } #endif