public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] Fix match tests on 32bit systems
@ 2022-06-08 12:45 Thomas Schwinge
  0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2022-06-08 12:45 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:dd213da6a3bd0587dc1e85a94674f935360ee5af

commit dd213da6a3bd0587dc1e85a94674f935360ee5af
Author: Philip Herron <philip.herron@embecosm.com>
Date:   Mon May 9 12:02:22 2022 +0000

    Fix match tests on 32bit systems
    
    Printing i64's on 32bit systems requires the proper format specifier
    this amends these testcases to 32bit integers so %i works as expected.
    I was able to use gdb to verify that these values are computed properly
    from the structure.

Diff:
---
 gcc/testsuite/rust/execute/torture/match1.rs | 2 +-
 gcc/testsuite/rust/execute/torture/match3.rs | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/testsuite/rust/execute/torture/match1.rs b/gcc/testsuite/rust/execute/torture/match1.rs
index 2393b157324..e5af512f15d 100644
--- a/gcc/testsuite/rust/execute/torture/match1.rs
+++ b/gcc/testsuite/rust/execute/torture/match1.rs
@@ -7,7 +7,7 @@ enum Foo {
     A,
     B,
     C(char),
-    D { x: i64, y: i64 },
+    D { x: i32, y: i32 },
 }
 
 fn inspect(f: Foo) {
diff --git a/gcc/testsuite/rust/execute/torture/match3.rs b/gcc/testsuite/rust/execute/torture/match3.rs
index 3d1fa0cc5e8..8cded3044df 100644
--- a/gcc/testsuite/rust/execute/torture/match3.rs
+++ b/gcc/testsuite/rust/execute/torture/match3.rs
@@ -7,7 +7,7 @@ enum Foo {
     A,
     B,
     C(char),
-    D { x: i64, y: i64 },
+    D { x: i32, y: i32 },
 }
 
 fn inspect(f: Foo) {


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-06-08 12:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-08 12:45 [gcc/devel/rust/master] Fix match tests on 32bit systems Thomas Schwinge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).