diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-05-09 14:32:00 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-09 14:32:00 +0000 |
commit | 8d828e4b301a52e43246176848ae8869dd26255c (patch) | |
tree | 6d9c7bd2feb578bfb922a405a9ee3f33f06272e1 | |
parent | 140f6a698b4d7157e6a33cd7b41c27b39ecbf76e (diff) | |
parent | dd213da6a3bd0587dc1e85a94674f935360ee5af (diff) | |
download | gcc-8d828e4b301a52e43246176848ae8869dd26255c.zip gcc-8d828e4b301a52e43246176848ae8869dd26255c.tar.gz gcc-8d828e4b301a52e43246176848ae8869dd26255c.tar.bz2 |
Merge #1228
1228: Fix match tests on 32bit systems r=philberty a=philberty
Printing i64's on 32bit systems requires the proper format specifier
this amends these test cases 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 on 32 bit systems.
Keeping the structures as i32 we can ignore platform-specific format
specifiers.
Co-authored-by: Philip Herron <philip.herron@embecosm.com>
-rw-r--r-- | gcc/testsuite/rust/execute/torture/match1.rs | 2 | ||||
-rw-r--r-- | 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 2393b15..e5af512 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 3d1fa0c..8cded30 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) { |