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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
!
3
! PR 41733: Proc-pointer conformance checks: Elemental-proc-ptr => non-elemental-procedure
4
!
5
! Contributed by James Van Buskirk
6
 
7
  implicit none
8
  procedure(my_dcos), pointer :: f
9
  f => my_dcos           ! { dg-error "invalid in procedure pointer assigment" }
10
contains
11
  real elemental function my_dcos(x)
12
    real, intent(in) :: x
13
    my_dcos = cos(x)
14
  end function
15
end

powered by: WebSVN 2.1.0

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