diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2018-02-23 22:36:54 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2018-02-23 22:36:54 +0000 |
commit | 88a3ea34080ad3087a8191fbf479543153175d59 (patch) | |
tree | 34eaec34d3588e09f9a77abba776266f124dc823 /gcc/testsuite/gfortran.dg/ret_array_1.f90 | |
parent | 25e15aaed275cdfef34b3ee6eb3cb4b43a48d44f (diff) | |
parent | e65055a558093bd4fc0b1b0024b7814cc187b8e8 (diff) | |
download | gccgo.tar.gz |
Merge from trunk revision 257954.gccgo
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gccgo@257955 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gfortran.dg/ret_array_1.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/ret_array_1.f90 | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/testsuite/gfortran.dg/ret_array_1.f90 b/gcc/testsuite/gfortran.dg/ret_array_1.f90 index 45e5a07c109..28561f63be7 100644 --- a/gcc/testsuite/gfortran.dg/ret_array_1.f90 +++ b/gcc/testsuite/gfortran.dg/ret_array_1.f90 @@ -10,30 +10,30 @@ program ret_array_1 ! Using the return value as an actual argument b = 0; b = sum (transpose (a), 1); - if (any (b .ne. (/9, 12/))) call abort () + if (any (b .ne. (/9, 12/))) STOP 1 ! Using the return value in an expression b = 0; b = sum (transpose (a) + 1, 1); - if (any (b .ne. (/12, 15/))) call abort () + if (any (b .ne. (/12, 15/))) STOP 2 ! Same again testing a user function ! TODO: enable these once this is implemented ! b = 0; ! b = sum (my_transpose (a), 1); -! if (any (b .ne. (/9, 12/))) call abort () +! if (any (b .ne. (/9, 12/))) STOP 3 ! ! ! Using the return value in an expression ! b = 0; ! b = sum (my_transpose (a) + 1, 1); -! if (any (b .ne. (/12, 15/))) call abort () +! if (any (b .ne. (/12, 15/))) STOP 4 contains subroutine test(x, n) integer, dimension (:, :) :: x integer n - if (any (shape (x) .ne. (/3, 2/))) call abort - if (any (x .ne. (n + reshape((/1, 4, 2, 5, 3, 6/), (/3, 2/))))) call abort + if (any (shape (x) .ne. (/3, 2/))) STOP 1 + if (any (x .ne. (n + reshape((/1, 4, 2, 5, 3, 6/), (/3, 2/))))) STOP 2 end subroutine function my_transpose (x) result (r) |