]> git.ipfire.org Git - thirdparty/gcc.git/commit
testsuite: Fix up c2x-enum-1.c for 32-bit arches [PR107311]
authorJakub Jelinek <jakub@redhat.com>
Wed, 19 Oct 2022 16:49:03 +0000 (18:49 +0200)
committerJakub Jelinek <jakub@redhat.com>
Wed, 19 Oct 2022 16:49:03 +0000 (18:49 +0200)
commita01eae670600852f78e8df1b88259572f181d42e
tree27eb1e2729ce40f4a9c266cf0e698ab71eaae023
parent69a233610f6b27cd4283561569d8ce0f35044dc4
testsuite: Fix up c2x-enum-1.c for 32-bit arches [PR107311]

On Wed, Oct 19, 2022 at 02:57:59PM +0000, Joseph Myers wrote:
> I think the type checked for e5a should be conditional on __LONG_MAX__ >
> __INT_MAX__; everything else there should be OK regardless.

This patch does that.

2022-10-19  Jakub Jelinek  <jakub@redhat.com>

PR c/107311
* gcc.dg/c2x-enum-1.c (enum e5): Expect e5a type inside of
enum to be int rather than long if long isn't wider than int.
gcc/testsuite/gcc.dg/c2x-enum-1.c