https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107815
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Ah, we even have PR98384 for that. So either we add // { dg-xfail-run-if "Non-conforming printf (see PR98384)" { *-*-solaris* *-*-darwin* } } to the test and thus xfail it all, or just ifdef out the max case if everything else is fine. Would that be +// Solaris and Darwin have non-conforming printf, see PR98384 and PR107815. +#if !(defined(__sun__) && defined(__svr4__)) && !defined(__MACH__) std::numeric_limits<std::float128_t>::max() +#endif ?