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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
! Tests the fix for PR29490, in which the creation of the
3
! interface expression for the first argument of the call to
4
! 'john' would cause an ICE because GFC_TYPE_ARRAY_LBOUND
5
! was NULL.
6
!
7
! Contributed by Philip Mason 
8
!
9
  !---------------------------------
10
  program fred
11
  !---------------------------------
12
  real              :: dezz(1:10)
13
  real, allocatable :: jack(:)
14
  !
15
  allocate(jack(10)); jack = 9.
16
  dezz = john(jack,1)
17
  print*,'dezz = ',dezz
18
 
19
  contains
20
    !---------------------------------
21
    function john(t,il)
22
    !---------------------------------
23
    real  :: t(il:)
24
    real  :: john(1:10)
25
    john = 10.
26
    end function john
27
  end

powered by: WebSVN 2.1.0

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