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
[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.dg
/
string_length_4.f90
blob
759066b078ab8d74920cc042ad3af7812b72c61b
1
! { dg-do compile }
2
! { dg-require-effective-target lto }
3
! { dg-options "-flto" }
4
! PR 78867, test case adapted from gfortran.dg/string_length_1.f90
5
program
pr78867
6
if
(
len
(
bar
(
2_8
)) /=
2
)
call
abort
7
contains
8
9
function
bar
(
i
)
10
integer
(
8
),
intent
(
in
) ::
i
11
character
(
len
=
i
) ::
bar
12
13
bar
=
""
14
end function
bar
15
16
end program
pr78867