diff mbox series

[pushed] testsuite: fix spaceship-narrowing1.C

Message ID 20240701221520.489149-1-polacek@redhat.com
State New
Headers show
Series [pushed] testsuite: fix spaceship-narrowing1.C | expand

Commit Message

Marek Polacek July 1, 2024, 10:15 p.m. UTC
Tested x86_64-pc-linux-gnu, applying to trunk.

-- >8 --
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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


base-commit: c847dcf94499da62e5a28921b404e6e561645d99
diff mbox series

Patch

diff --git a/gcc/testsuite/g++.dg/cpp2a/spaceship-narrowing1.C b/gcc/testsuite/g++.dg/cpp2a/spaceship-narrowing1.C
index 7769f950bed..9f2ff3ceae4 100644
--- a/gcc/testsuite/g++.dg/cpp2a/spaceship-narrowing1.C
+++ b/gcc/testsuite/g++.dg/cpp2a/spaceship-narrowing1.C
@@ -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;
 };