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
Increase timeout factor for hppa*-*-* in gcc.dg/long_branch.c
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.dg
/
pure_byref_2.f90
blob
d5474f091b0b7a19aa05cc68ba5cb65c56551445
1
! { dg-do run }
2
! PR 22607: PURE return-by-reference functions
3
program
main
4
implicit none
5
integer
,
dimension
(
2
) ::
b
6
b
=
fun
(
size
(
b
))
7
if
(
b
(
1
) /=
1
.
or
.
b
(
2
) /=
2
)
STOP
1
8
contains
9
pure
function
fun
(
n
)
10
integer
,
intent
(
in
) ::
n
11
integer
::
fun
(
n
)
12
integer
::
i
13
do
i
=
1
,
n
14
fun
(
i
) =
i
15
end do
16
end function
fun
17
end program
main