summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg
diff options
context:
space:
mode:
authortkoenig <tkoenig@138bc75d-0d04-0410-961f-82ee72b054a4>2006-03-25 21:15:48 +0000
committertkoenig <tkoenig@138bc75d-0d04-0410-961f-82ee72b054a4>2006-03-25 21:15:48 +0000
commit56ce4f1a54b78117247c41cc8e5f3a0322355653 (patch)
treeecdfff8b892396495441f76b77c91589555fd96d /gcc/testsuite/gfortran.dg
parent604eef2cbd1a1c2dd2b268b3f5e4eedeb70c3983 (diff)
downloadgcc-56ce4f1a54b78117247c41cc8e5f3a0322355653.tar.gz
2006-03-25 Thomas Koenig <Thomas.Koenig@online.de>
PR fortran/26769 * iresolve.c (gfc_resolve_reshape): Remove doubling of kind for complex. For real(kind=10), call reshape_r10. (gfc_resolve_transpose): For real(kind=10), call transpose_r10. 2006-03-25 Thomas Koenig <Thomas.Koenig@online.de> PR fortran/26769 * Makefile.am: Add transpose_r10.c and reshape_r10.c. * aclocal.m4: Regenerate using aclocal 1.9.3. * Makefile.in: Regenerate using automake 1.9.3. * m4/iparm.m4 (rtype_ccode): If rtype_letter is `i', evaluate to rtype_kind, otherwise to rtype_code. * generated/transpose_r10.c: Add. * generated/reshape_r10.c: Add. 2006-03-25 Thomas Koenig <Thomas.Koenig@online.de> PR fortran/26769 * gfortran.dg/transpose_reshape_r10.f90: New test case. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112381 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gfortran.dg')
-rw-r--r--gcc/testsuite/gfortran.dg/transpose_reshape_r10.f9012
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/transpose_reshape_r10.f90 b/gcc/testsuite/gfortran.dg/transpose_reshape_r10.f90
new file mode 100644
index 00000000000..83da8faeb1c
--- /dev/null
+++ b/gcc/testsuite/gfortran.dg/transpose_reshape_r10.f90
@@ -0,0 +1,12 @@
+! { dg-do run }
+! { dg-require-effective-target fortran_large_real }
+program main
+ integer,parameter :: k = selected_real_kind (precision (0.0_8) + 1)
+ character(len=90) line
+ real(k) :: a(3,3)
+ real(k) :: b(9)
+ a = 1.0_k
+ a(1,3) = 0.0_k
+ write (line,'(9G10.6)') transpose(a)
+ write (line,'(9G10.6)') reshape(a,shape(b))
+end