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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [pointer_target_1.f90] - Blame information for rev 801

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

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do run }
2
!
3
! TARGET actual to POINTER dummy with INTENT(IN)
4
!
5
program test
6
  implicit none
7
  integer, target :: a
8
  a = 66
9
  call foo(a)
10
  if (a /= 647) call abort()
11
contains
12
  subroutine foo(p)
13
    integer, pointer, intent(in) :: p
14
    if (a /= 66) call abort()
15
    if (p /= 66) call abort()
16
    p = 647
17
    if (p /= 647) call abort()
18
    if (a /= 647) call abort()
19
  end subroutine foo
20
end program test

powered by: WebSVN 2.1.0

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