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" }