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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
! PR33162 INTRINSIC functions as ACTUAL argument
3
! Test case adapted from PR by Jerry DeLisle 
4
module m
5
implicit none
6
contains
7
  subroutine sub(a)
8
    interface
9
      function a(x)
10
        real :: a, x
11
        intent(in) :: x
12
      end function a
13
    end interface
14
    print *, a(4.0)
15
  end subroutine sub
16
end module m
17
 
18
use m
19
implicit none
20
EXTERNAL foo  ! implicit interface is undefined
21
call sub(foo) ! { dg-error "is not a function" }
22
end
23
 
24
! { dg-final { cleanup-modules "m" } }
25
 

powered by: WebSVN 2.1.0

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