diff options
author | Jakub Jelinek <jakub@redhat.com> | 2023-12-07 09:45:13 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2023-12-07 09:45:13 +0100 |
commit | 0d79636b8d2c7f0da16fbf5f786993783a4389ff (patch) | |
tree | e0c0799e8b242a1caa61f285eb942eb4c3b27681 /gcc | |
parent | 3cbab07b08d2f3a3ed34b6ec12e67727c59d285c (diff) | |
download | gcc-0d79636b8d2c7f0da16fbf5f786993783a4389ff.zip gcc-0d79636b8d2c7f0da16fbf5f786993783a4389ff.tar.gz gcc-0d79636b8d2c7f0da16fbf5f786993783a4389ff.tar.bz2 |
testsuite: Fix up gcc.target/s390/pr96127.c test for modern C [PR96127]
I've noticed this test regressed on s390x-linux with the addition of the
switch to modern C patchset. Haven't tried to reproduce the ICE, but as it
was a backend ICE and FE after warning used to add such casts before (now
errors), I think this ought to keep the testcase testing what was intended
before.
2023-12-07 Jakub Jelinek <jakub@redhat.com>
PR target/96127
* gcc.target/s390/pr96127.c (c1): Add casts to long int *.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/gcc.target/s390/pr96127.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.target/s390/pr96127.c b/gcc/testsuite/gcc.target/s390/pr96127.c index 213ed14..dd78643 100644 --- a/gcc/testsuite/gcc.target/s390/pr96127.c +++ b/gcc/testsuite/gcc.target/s390/pr96127.c @@ -7,7 +7,7 @@ void c1 (int oz, int dk, int ub) { int *hd = 0; - long int *th = &dk; + long int *th = (long int *) &dk; while (ub < 1) { @@ -17,7 +17,7 @@ c1 (int oz, int dk, int ub) while (oz < 2) { - long int *lq = &oz; + long int *lq = (long int *) &oz; (*hd < (*lq = *th)) < oz; |