]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: fix spaceship-narrowing1.C
authorMarek Polacek <polacek@redhat.com>
Mon, 1 Jul 2024 22:12:31 +0000 (18:12 -0400)
committerMarek Polacek <polacek@redhat.com>
Mon, 1 Jul 2024 22:13:57 +0000 (18:13 -0400)
I made sure that Wnarrowing22.C works fine on ILP32, but apparently
I didn't verify that spaceship-narrowing1.C works there as well.  :(

gcc/testsuite/ChangeLog:

* g++.dg/cpp2a/spaceship-narrowing1.C: Use __INT64_TYPE__.

gcc/testsuite/g++.dg/cpp2a/spaceship-narrowing1.C

index 7769f950bed53cc005ad1216093e1215c78260fe..9f2ff3ceae4cc0634e3660c3dfa817cf62db85d4 100644 (file)
@@ -16,7 +16,7 @@ constexpr strong_ordering strong_ordering::greater = 1;
 }
 
 struct A {
-  long i : 48;
+  __INT64_TYPE__ i : 48;
   auto operator <=> (const A&) const = default;
 };