2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gfortran.dg / allocatable_scalar_1.f90
blobd83d2f7f72bdaa767413a8c6c44926661caccc35
1 ! { dg-do run }
3 ! PR 40996: [F03] ALLOCATABLE scalars
5 ! Contributed by Janus Weil <janus@gcc.gnu.org>
7 implicit none
8 real, allocatable :: scalar
10 allocate(scalar)
11 scalar = exp(1.)
12 print *,scalar
13 if (.not. allocated(scalar)) call abort()
14 deallocate(scalar)
15 if (allocated(scalar)) call abort()
17 end