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
PR tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.dg
/
pr84957.f90
blob
ba7f4418e5782dae06b895d0705a6cbd64cb7fe0
1
! { dg-do compile }
2
! PR 84957
3
!
4
! Testcase derived from PR by G. Steinmetz <gscfq@t-online.de>
5
!
6
function
f
()
result
(
u
)
7
entry
g
()
result
(
v
)
8
contains
9
function
v
(
x
)
result
(
z
)
10
character
::
x
(
2
)
11
character
(
sum
(
len_trim
(
x
))) ::
z
12
end function
v
13
function
u
(
x
)
result
(
z
)
14
character
::
x
(
2
)
15
character
(
sum
(
len_trim
(
x
))) ::
z
16
end function
u
17
end function
f