2 ! { dg-options "-std=f95" }
4 ! PR 39692: f95: conflict between EXTERNAL and POINTER
6 ! Test for Procedure Pointers (without PROCEDURE statements) with the -std=f95 flag.
8 ! Contributed by Janus Weil <janus@gcc.gnu.org>
11 external :: f
! { dg-error "Fortran 2003: Procedure pointer" }
14 pointer :: g
! { dg-error "Fortran 2003: Procedure pointer" }
16 real, pointer, external :: h
! { dg-error "Fortran 2003: Procedure pointer" }
22 pointer :: i
! { dg-error "Fortran 2003: Procedure pointer" }
27 end function j
! { dg-error "Fortran 2003: Procedure pointer" }
32 function k() ! { dg-error "attribute conflicts with" }
35 pointer k
! { dg-error "Fortran 2003: Procedure pointer" }