From: Jakub Jelinek Date: Thu, 12 Mar 2020 00:28:55 +0000 (+0100) Subject: testsuite: Fix concepts-using2.C failure on 32-bit targets [PR93907] X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=690de2b706baaec628b7534a82f7feb1c42df3b5;p=gcc.git testsuite: Fix concepts-using2.C failure on 32-bit targets [PR93907] The test FAILs on 32-bit targets that don't have __int128 type. 2020-03-12 Jakub Jelinek PR c++/93907 * g++.dg/cpp2a/concepts-using2.C (cc): Use long long instead of __int128 if __SIZEOF_INT128__ isn't defined. --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 1ed0071da2b..18427eb1808 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2020-03-12 Jakub Jelinek + + PR c++/93907 + * g++.dg/cpp2a/concepts-using2.C (cc): Use long long instead of + __int128 if __SIZEOF_INT128__ isn't defined. + 2020-03-06 Marek Polacek PR c++/94074 - wrong modifying const object error for COMPONENT_REF. diff --git a/gcc/testsuite/g++.dg/cpp2a/concepts-using2.C b/gcc/testsuite/g++.dg/cpp2a/concepts-using2.C index b1a45d5e595..206b54a2883 100644 --- a/gcc/testsuite/g++.dg/cpp2a/concepts-using2.C +++ b/gcc/testsuite/g++.dg/cpp2a/concepts-using2.C @@ -15,7 +15,11 @@ template using an = typename n::e; template constexpr bool ao = c::d; template constexpr bool i = c<1>::d; template concept bb = i; +#ifdef __SIZEOF_INT128__ using cc = __int128; +#else +using cc = long long; +#endif template concept cd = bb; template concept ce = requires { requires cd; }; template concept h = ce;