repo.or.cz
/
official-gcc
/
graphite-test-results.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git]
/
gcc
/
testsuite
/
gfortran.dg
/
use_allocated_1.f90
blob
e590f6a95619d8e59cb1819e595b96f1bb9d205a
1
! { dg-do run }
2
! PR17678
3
! We were incorrectly setting use-associated variables to unallocated
4
! on procedure entry.
5
module
foo
6
integer
,
dimension
(:),
allocatable
::
bar
7
end module
8
9
program
main
10
use
foo
11
allocate
(
bar
(
10
))
12
call
init
13
end program
main
14
15
subroutine
init
16
use
foo
17
if
(.
not
.
allocated
(
bar
))
call
abort
18
end subroutine
init
19
20
! { dg-final { cleanup-modules "foo" } }