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
/
pr78741.f90
blob
6eb85789f942935d8247139b9668035b4dfa2f46
1
! { dg-do compile }
2
! PR fortran/78741
3
! Contributed by Gerhard Steinmetz <gerhard.steinmetz.fortran at t-online.de>
4
subroutine
s
(
n
,
x
)
5
integer
::
n
6
character
(
n
) ::
x
7
character
,
pointer
::
z
(:)
8
x
=
'a'
9
return
10
entry
g
(
n
,
x
)
! { dg-error "is already defined" }
11
x
=
'b'
12
contains
13
subroutine
g
! { dg-error "(1)" }
14
z
(
1
) =
x
(
1
:
1
)
15
end
16
end