From 5c3489a083b3d1f7085752045b99e429950c3906 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Fri, 28 Feb 2020 09:44:53 +0100 Subject: [PATCH] testsuite: Fix up g++.dg/torture/pr92152.C test for ilp32 targets 2020-02-28 Jakub Jelinek PR middle-end/92152 * g++.dg/torture/pr92152.C (size_t): Use decltype (sizeof (0)) instead of hardcoding unsigned long. (uint64_t): Use unsigned long long instead of unsigned long. --- gcc/testsuite/ChangeLog | 7 +++++++ gcc/testsuite/g++.dg/torture/pr92152.C | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 35fd93a18fc..cde33ee5015 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2020-02-28 Jakub Jelinek + + PR middle-end/92152 + * g++.dg/torture/pr92152.C (size_t): Use decltype (sizeof (0)) instead + of hardcoding unsigned long. + (uint64_t): Use unsigned long long instead of unsigned long. + 2020-02-27 Michael Meissner PR target/93932 diff --git a/gcc/testsuite/g++.dg/torture/pr92152.C b/gcc/testsuite/g++.dg/torture/pr92152.C index 1aff9b735be..0e4b4590281 100644 --- a/gcc/testsuite/g++.dg/torture/pr92152.C +++ b/gcc/testsuite/g++.dg/torture/pr92152.C @@ -1,6 +1,6 @@ /* { dg-do run } */ -using size_t = unsigned long; -using uint64_t = unsigned long; +using size_t = decltype (sizeof (0)); +using uint64_t = unsigned long long; namespace HPHP { -- 2.30.2