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
/
char_result_18.f90
blob
f47c88ad4b3ba7bfc9e5c22a99fa3eadc23b983e
1
! { dg-do compile }
2
!
3
! Tests the fix for PR80657.
4
!
5
! Contributed by Vittorio Zecca <zeccav@gmail.com>
6
!
7
function
f
(
x
)
8
implicit character
(
len
(
f
)) (
x
)
! { dg-error "Self reference in character length" }
9
character
(
len
(
x
))
f
10
end