OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.fortran-torture/] [compile/] [allocate.f90] - Blame information for rev 747

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

Line No. Rev Author Line
1 695 jeremybenn
! Snippet to test various allocate statements
2
 
3
program test_allocate
4
   implicit none
5
   type t
6
      integer i
7
      real r
8
   end type
9
   type pt
10
      integer, pointer :: p
11
   end type
12
   integer, allocatable, dimension(:, :) :: a
13
   type (t), pointer, dimension(:) :: b
14
   type (pt), pointer :: c
15
   integer, pointer:: p
16
   integer n
17
 
18
   n = 10
19
   allocate (a(1:10, 4))
20
   allocate (a(5:n, n:14))
21
   allocate (a(6, 8))
22
   allocate (b(n))
23
   allocate (c)
24
   allocate (c%p)
25
   allocate (p)
26
end program

powered by: WebSVN 2.1.0

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