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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc3/] [gcc/] [testsuite/] [gfortran.dg/] [proc_ptr_result_5.f90] - Blame information for rev 516

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 302 jeremybenn
! { dg-do compile }
2
!
3
! PR 40541: Assignment checking for proc-pointer => proc-ptr-returning-function()
4
!
5
! Contributed by Tobias Burnus 
6
 
7
program test
8
  procedure(real), pointer :: p
9
  p => f()  ! { dg-error "Type/kind mismatch in return value" }
10
contains
11
 function f()
12
   pointer :: f
13
   interface
14
     logical(1) function f()
15
     end function
16
   end interface
17
   f = .true._1
18
 end function f
19
end program test
20
 

powered by: WebSVN 2.1.0

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