aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorThomas Koenig <Thomas.Koenig@online.de>2005-06-28 23:07:20 +0000
committerThomas Koenig <tkoenig@gcc.gnu.org>2005-06-28 23:07:20 +0000
commit7f8f6d5f05abb9f672982718f549a6fa81bf7270 (patch)
tree62dc030b2395df32edb7d2c7391850d46aa1aafd /gcc
parenta05be2e0c3e6147b014dcc06c6673ff0fff9c3d9 (diff)
downloadgcc-7f8f6d5f05abb9f672982718f549a6fa81bf7270.zip
gcc-7f8f6d5f05abb9f672982718f549a6fa81bf7270.tar.gz
gcc-7f8f6d5f05abb9f672982718f549a6fa81bf7270.tar.bz2
re PR libfortran/22142 ([4.0 only] eoshift: boundary not filled in correctly)
2005-06-28 Thomas Koenig <Thomas.Koenig@online.de> PR libfortran/22142 * m4/eoshift1.m4: Correct bstride (it needs to be multiplied by size since it's a char pointer). * m4/eoshift1_4.c: Regenerated. * m4/eoshift1_8.c: Regenerated. 2005-06-28 Thomas Koenig <Thomas.Koenig@online.de> PR libfortran/22142 * gfortran.fortran-torture/execute/intrinsic_eoshift.f90: Add testcase also testing eoshift1 for PR 22142. From-SVN: r101398
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/gfortran.fortran-torture/execute/intrinsic_eoshift.f906
2 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 62cdacc..3f6a4c5 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2005-06-28 Thomas Koenig <Thomas.Koenig@online.de>
+
+ PR libfortran/22142
+ * gfortran.fortran-torture/execute/intrinsic_eoshift.f90:
+ Add testcase also testing eoshift1 for PR 22142.
+
2005-06-28 Richard Henderson <rth@redhat.com>
* gcc.dg/tree-ssa/20030708-1.c: Remove static from test function.
diff --git a/gcc/testsuite/gfortran.fortran-torture/execute/intrinsic_eoshift.f90 b/gcc/testsuite/gfortran.fortran-torture/execute/intrinsic_eoshift.f90
index a607baa..872422d 100644
--- a/gcc/testsuite/gfortran.fortran-torture/execute/intrinsic_eoshift.f90
+++ b/gcc/testsuite/gfortran.fortran-torture/execute/intrinsic_eoshift.f90
@@ -37,6 +37,12 @@ program intrinsic_eoshift
if (any (a .ne. reshape ((/99, -1, 42, 99, -1, 42, 1, 2, 3/), (/3, 3/)))) &
call abort
+ a = reshape ((/1, 2, 3, 4, 5, 6, 7, 8, 9/), (/3, 3/))
+ bo = (/99, -1, 42/)
+ a = eoshift (a, -2, bo, 2)
+ if (any (a .ne. reshape ((/99, -1, 42, 99, -1, 42, 1, 2, 3/), (/3, 3/)))) &
+ call abort
+
! Array shift and array bound.
a = reshape ((/1, 2, 3, 4, 5, 6, 7, 8, 9/), (/3, 3/))
a = eoshift (a, (/1, 0, -1/), (/99, -1, 42/), 1)