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 35fd93a18fc7b5eb1ebd1f849ed4810ada5176e8..cde33ee5015f14694168cd980b78de93bd13c561 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 1aff9b735be36254434e7440906a42ba561bfa35..0e4b459028102e7e499c433043e6e33495454049 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 {