From 1385050e267d645259d9fb66f016bdb2addb70a6 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Thu, 8 Nov 2018 16:26:55 -0800 Subject: [PATCH] More formatter tests --- test/format-test.cc | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) 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