From: Jakub Jelinek Date: Wed, 24 May 2017 19:11:01 +0000 (+0200) Subject: integer-pack2.C: Require int32 effective target. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=216bfadc5d4ef70af8010b420dc3318d45f3891f;p=gcc.git integer-pack2.C: Require int32 effective target. * g++.dg/ext/integer-pack2.C: Require int32 effective target. Don't include limits.h. (w): Conditionalize on long long wider than int. Use 1LL << (__SIZEOF_INT__ * __CHAR_BIT__) instead of -9223372036854775808. (x): Use __INT_MAX__ instead of INT_MAX. From-SVN: r248427 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b6f824b21fa..9308ae15ae8 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,12 @@ +2017-05-24 Jakub Jelinek + + * g++.dg/ext/integer-pack2.C: Require int32 effective target. + Don't include limits.h. + (w): Conditionalize on long long wider than int. Use + 1LL << (__SIZEOF_INT__ * __CHAR_BIT__) instead of + -9223372036854775808. + (x): Use __INT_MAX__ instead of INT_MAX. + 2017-05-24 Thomas Koenig PR fortran/66094 diff --git a/gcc/testsuite/g++.dg/ext/integer-pack2.C b/gcc/testsuite/g++.dg/ext/integer-pack2.C index 370dbebfa10..406e195574c 100644 --- a/gcc/testsuite/g++.dg/ext/integer-pack2.C +++ b/gcc/testsuite/g++.dg/ext/integer-pack2.C @@ -1,12 +1,12 @@ -// { dg-do compile { target c++11 } } +// { dg-do compile { target { c++11 && int32 } } } // { dg-options -w } -#include - template struct integer_sequence { }; template using make_integer_sequence = integer_sequence; // { dg-error "argument" } -make_integer_sequence w; -make_integer_sequence x; // { dg-message "required" } +#if __SIZEOF_LONG_LONG__ > __SIZEOF_INT__ +make_integer_sequence w; +#endif +make_integer_sequence x; // { dg-message "required" } make_integer_sequence y; // { dg-message "required" }