PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gfortran.dg / allocatable_scalar_1.f90
blob12731940e052febd820ec5c743595d6cd4d9e641
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)) STOP 1
14 deallocate(scalar)
15 if (allocated(scalar)) STOP 2
17 end