repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2017-02-20 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.dg
/
pr50069_2.f90
blob
a5046d47630ddce9db5619b0566d4d9034f3a118
1
! { dg-do compile }
2
3
function
reverse
(
string
)
4
implicit none
5
character
(
len
=*),
intent
(
in
) ::
string
6
character
(
len
=:),
allocatable
::
reverse
7
integer
i
8
reverse
=
string
9
forall
(
i
=
1
:
len
(
reverse
))
reverse
(
i
:
i
) = &
10
reverse
(
len
(
reverse
)-
i
+
1
:
len
(
reverse
)-
i
+
1
)
11
end function
reverse