OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [allocatable_scalar_1.f90] - Blame information for rev 399

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 302 jeremybenn
! { dg-do run }
2
!
3
! PR 40996: [F03] ALLOCATABLE scalars
4
!
5
! Contributed by Janus Weil 
6
 
7
implicit none
8
real, allocatable :: scalar
9
 
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()
16
 
17
end
18
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.