OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gfortran.dg/] [proc_ptr_14.f90] - Diff between revs 302 and 384

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 302 Rev 384
! { dg-do compile }
! { dg-do compile }
! { dg-options "-std=f95" }
! { dg-options "-std=f95" }
!
!
! PR 39692: f95: conflict between EXTERNAL and POINTER
! PR 39692: f95: conflict between EXTERNAL and POINTER
!
!
! Test for Procedure Pointers (without PROCEDURE statements) with the -std=f95 flag.
! Test for Procedure Pointers (without PROCEDURE statements) with the -std=f95 flag.
!
!
! Contributed by Janus Weil 
! Contributed by Janus Weil 
pointer :: f
pointer :: f
external :: f   ! { dg-error "Fortran 2003: Procedure pointer" }
external :: f   ! { dg-error "Fortran 2003: Procedure pointer" }
external :: g
external :: g
pointer :: g   ! { dg-error "Fortran 2003: Procedure pointer" }
pointer :: g   ! { dg-error "Fortran 2003: Procedure pointer" }
real, pointer, external :: h   ! { dg-error "Fortran 2003: Procedure pointer" }
real, pointer, external :: h   ! { dg-error "Fortran 2003: Procedure pointer" }
interface
interface
  subroutine i
  subroutine i
  end subroutine i
  end subroutine i
end interface
end interface
pointer :: i   ! { dg-error "Fortran 2003: Procedure pointer" }
pointer :: i   ! { dg-error "Fortran 2003: Procedure pointer" }
pointer :: j
pointer :: j
interface
interface
  real function j()
  real function j()
  end function j   ! { dg-error "Fortran 2003: Procedure pointer" }
  end function j   ! { dg-error "Fortran 2003: Procedure pointer" }
end interface
end interface
contains
contains
  function k()   ! { dg-error "attribute conflicts with" }
  function k()   ! { dg-error "attribute conflicts with" }
    intrinsic sin
    intrinsic sin
    external k
    external k
    pointer k   ! { dg-error "Fortran 2003: Procedure pointer" }
    pointer k   ! { dg-error "Fortran 2003: Procedure pointer" }
    real k
    real k
  end function k
  end function k
end
end
 
 

powered by: WebSVN 2.1.0

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