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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do run }
2
!
3
! PR 50570: [4.6/4.7 Regression] Incorrect error for assignment to intent(in) pointer
4
!
5
! Contributed by Bill Long 
6
 
7
program bots_sparselu_pointer_intent_in
8
 
9
  implicit none
10
  integer, pointer :: array(:)
11
 
12
  allocate(array(4))
13
  array = 0
14
  call sub(array)
15
  if (sum(array)/=1) call abort
16
 
17
contains
18
 
19
  subroutine sub(dummy)
20
    integer, pointer, intent(in) :: dummy(:)
21
    dummy(1) = 1
22
  end subroutine sub
23
 
24
end program

powered by: WebSVN 2.1.0

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