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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [derived_comp_array_ref_7.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
! Check the fix for PR32129 #4 in which the argument 'vec(vy(i, :))' was
3
! incorrectly simplified, resulting in an ICE.
4
!
5
! Reported by Francois-Xavier Coudert 
6
!
7
program testCode
8
  implicit none
9
  type vec
10
    real, dimension(2) :: coords
11
  end type
12
  integer :: i
13
  real, dimension(2,2), parameter :: vy = reshape ((/1,2,3,4/),(/2,2/))
14
  i = 1
15
  if (any (foo(vec(vy(i, :))) /= vy(i, :))) call abort ()
16
 
17
contains
18
 
19
  function foo (xin)
20
    type(vec) :: xin
21
    real, dimension (2) :: foo
22
    intent(in)  xin
23
    foo = xin%coords
24
  end function
25
end program

powered by: WebSVN 2.1.0

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