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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gfortran.fortran-torture/] [execute/] [ptr.f90] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
program ptr
2
   implicit none
3
   integer, pointer, dimension(:) :: a, b
4
   integer, pointer :: p
5
   integer, target :: i
6
 
7
   allocate (a(1:6))
8
 
9
   a = (/ 1, 2, 3, 4, 5, 6 /)
10
   b => a
11
   if (any (b .ne. (/ 1, 2, 3, 4, 5, 6 /))) call abort
12
   b => a(1:6:2)
13
   if (any (b .ne. (/ 1, 3, 5/))) call abort
14
 
15
   p => i
16
   i = 42
17
   if (p .ne. 42) call abort
18
   p => a(4)
19
   if (p .ne. 4) call abort
20
end program

powered by: WebSVN 2.1.0

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