diff --git a/test/chrono-test.cc b/test/chrono-test.cc index 275f89fcb496..b0b30e534165 100644 --- a/test/chrono-test.cc +++ b/test/chrono-test.cc @@ -344,4 +344,7 @@ TEST(ChronoTest, OverflowingFloat2) { const std::chrono::duration d{1.79400457e+31f}; fmt::format("{:%S}", d); } +TEST(ChronoTest,crash1) { + fmt::format("{:%R}", std::chrono::duration{2}); +} #endif // FMT_STATIC_THOUSANDS_SEPARATOR