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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
! { dg-options "-Warray-temporaries" }
3
module foo
4
  implicit none
5
contains
6
  integer pure  function bar(i,j)
7
    integer, intent(in) :: i,j
8
    bar = 3 - i + 1 * abs(i) + j
9
  end function bar
10
end module foo
11
 
12
program main
13
  use foo
14
  implicit none
15
  real a(10)
16
  integer :: i
17
  read (*,*) a, i
18
  a(i:abs(i)) = a(i:abs(i))
19
  a(bar(i,i+2):2) = a(bar(i,i+2):2)
20
  a(int(i,kind=2):5) = a(int(i,kind=2)+1:6)
21
end program main
22
! { dg-final { cleanup-modules "foo" } }

powered by: WebSVN 2.1.0

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