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
Plugins: Add label-text.h to CPPLIB_H so it will be installed [PR115288]
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.dg
/
allocatable_scalar_8.f90
blob
de5d11090720877b61155125661bc43a95213e9c
1
! { dg-do run }
2
!
3
! PR fortran/41872
4
!
5
! Character functions returning allocatable scalars
6
!
7
program
test
8
implicit none
9
if
(
func
() /=
'abc'
)
STOP
1
10
contains
11
function
func
()
result
(
str
)
12
character
(
len
=
3
),
allocatable
::
str
13
if
(
allocated
(
str
))
STOP
2
14
allocate
(
str
)
15
str
=
'abc'
16
end function
func
17
end program
test