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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [generic_3.f90] - Blame information for rev 193

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

Line No. Rev Author Line
1 149 jeremybenn
! { dg-do compile }
2
! Testcase from PR 17713
3
module fit_functions
4
  implicit none
5
contains
6
  subroutine gauss( x, a, y, dy, ma )
7
    double precision, intent(in)     :: x
8
    double precision, intent(in)     :: a(:)
9
    double precision, intent(out)    :: y
10
    double precision, intent(out)    :: dy(:)
11
    integer,          intent(in)     :: ma
12
  end subroutine gauss
13
end module fit_functions
14
 
15
subroutine mrqcof( x, y, sig, ndata, a, ia, ma )
16
  use fit_functions
17
 
18
  implicit none
19
  double precision, intent(in)   :: x(:), y(:), sig(:)
20
  integer,   intent(in)          :: ndata
21
  double precision, intent(in)   :: a(:)
22
  integer,   intent(in)          :: ia(:), ma
23
 
24
  integer                           i
25
  double precision                  yan, dyda(ma)
26
 
27
  do i = 1, ndata
28
     call gauss( x(i), a, yan, dyda, ma )
29
  end do
30
end subroutine mrqcof
31
 
32
! { dg-final { cleanup-modules "fit_functions" } }

powered by: WebSVN 2.1.0

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