lto: Remove random_seed from section name.
[official-gcc.git] / gcc / testsuite / gfortran.dg / use_allocated_1.f90
blob18bebb5650472bcef222f15804a0f33592f2b4f0
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
9 program main
10 use foo
11 allocate (bar(10))
12 call init
13 end program main
15 subroutine init
16 use foo
17 if (.not.allocated(bar)) STOP 1
18 end subroutine init