testsuite: Fix up g++.dg/torture/pr92152.C test for ilp32 targets
authorJakub Jelinek <jakub@redhat.com>
Fri, 28 Feb 2020 08:44:53 +0000 (09:44 +0100)
committerJakub Jelinek <jakub@redhat.com>
Fri, 28 Feb 2020 08:44:53 +0000 (09:44 +0100)
2020-02-28  Jakub Jelinek  <jakub@redhat.com>

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
gcc/testsuite/g++.dg/torture/pr92152.C

index 35fd93a..cde33ee 100644 (file)
@@ -1,3 +1,10 @@
+2020-02-28  Jakub Jelinek  <jakub@redhat.com>
+
+       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  <meissner@linux.ibm.com>
 
        PR target/93932
index 1aff9b7..0e4b459 100644 (file)
@@ -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 {