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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [interface_20.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 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()
10
        real :: a
11
      end function a
12
    end interface
13
    print *, a()
14
  end subroutine sub
15
end module m
16
use m
17
implicit none
18
intrinsic cos
19
call sub(cos) ! { dg-error "wrong number of arguments" }
20
end
21
 
22
! { dg-final { cleanup-modules "m" } }
23
 

powered by: WebSVN 2.1.0

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